]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69998: Fix decoding error in locale.nl_langinfo() (GH-124963)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 Oct 2024 08:27:49 +0000 (11:27 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 08:27:49 +0000 (11:27 +0300)
commit93b9e6bd7d48150d8a5d16cea39246a980e073cb
tree1c685755350231585c12d2a4d76dc41aa314aaff
parent27390990fa9306e2a797a4eb2bd83c5bfc7cb186
gh-69998: Fix decoding error in locale.nl_langinfo() (GH-124963)

The function now sets temporarily the LC_CTYPE locale to the locale
of the category that determines the requested value if the locales are
different and the resulting string is non-ASCII.
This temporary change affects other threads.
Doc/library/locale.rst
Doc/whatsnew/3.14.rst
Lib/test/test__locale.py
Misc/NEWS.d/next/Library/2024-10-04-12-43-03.gh-issue-69998.DVqOXX.rst [new file with mode: 0644]
Modules/_localemodule.c