◐ Shell
clean mode source ↗

gh-69998: Fix decoding error in locale.nl_langinfo() by serhiy-storchaka · Pull Request #124963 · python/cpython

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.

vstinner

vstinner

vstinner

@serhiy-storchaka

efimov-mikhail pushed a commit to efimov-mikhail/cpython that referenced this pull request

Oct 9, 2024
…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.