]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152905: Decode LC_TIME items in nl_langinfo() from glibc wide data (GH-152911)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 9 Jul 2026 17:36:08 +0000 (20:36 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2026 17:36:08 +0000 (17:36 +0000)
commit39a817e7b4f09e9aaad296e2509a7b9db7bd80f5
tree335b33a54d9887fba03cbe5d3bc0ef4422ab3b62
parent3ce7a1211c37f7f383dc67387ea7006273662820
gh-152905: Decode LC_TIME items in nl_langinfo() from glibc wide data (GH-152911)

On glibc, locale.nl_langinfo() now decodes the LC_TIME text items from the
wide (_NL_W*) locale data, independently of the LC_CTYPE encoding.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Doc/library/locale.rst
Lib/test/test__locale.py
Misc/NEWS.d/next/Library/2026-07-01-23-17-27.gh-issue-152905.wLnGqR.rst [new file with mode: 0644]
Modules/_localemodule.c