diff options
author | Gordon Messmer <gordon.messmer@gmail.com> | 2023-04-26 06:33:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 06:33:09 (GMT) |
commit | 2763994be38e388c321a6807264c694dbf1dafcb (patch) | |
tree | ed96608128263619db6c48c77873bc734dbd6a4e /Misc/NEWS.d | |
parent | 31acfd78a0810f84898d36a8289e407d3754b823 (diff) | |
download | cpython-2763994be38e388c321a6807264c694dbf1dafcb.zip cpython-2763994be38e388c321a6807264c694dbf1dafcb.tar.gz cpython-2763994be38e388c321a6807264c694dbf1dafcb.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-04-25-22-06-00.gh-issue-74940.TOacQ9.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-04-25-22-06-00.gh-issue-74940.TOacQ9.rst b/Misc/NEWS.d/next/Library/2023-04-25-22-06-00.gh-issue-74940.TOacQ9.rst new file mode 100644 index 0000000..c37d795 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-04-25-22-06-00.gh-issue-74940.TOacQ9.rst @@ -0,0 +1,2 @@ +The C.UTF-8 locale is no longer converted to en_US.UTF-8, enabling the use +of UTF-8 encoding on systems which have no locales installed. |