]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74940: Allow fallback to UTF-8 encoding on systems with no locales installed ...
authorGordon Messmer <gordon.messmer@gmail.com>
Wed, 26 Apr 2023 06:33:09 +0000 (23:33 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 06:33:09 +0000 (15:33 +0900)
commit2763994be38e388c321a6807264c694dbf1dafcb
treeed96608128263619db6c48c77873bc734dbd6a4e
parent31acfd78a0810f84898d36a8289e407d3754b823
gh-74940: Allow fallback to UTF-8 encoding on systems with no locales installed (GH-14925)

This change removes the alias of the 'C' locale to 'en_US'. Because of
this alias, it is currently impossible for an application to use
setlocale() to specify a UTF-8 locale on a system that has no locales
installed, but which supports the C.UTF-8 locale/encoding.
Lib/locale.py
Misc/NEWS.d/next/Library/2023-04-25-22-06-00.gh-issue-74940.TOacQ9.rst [new file with mode: 0644]