diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2011-05-17 13:22:30 +0200 |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2011-05-17 13:22:30 +0200 |
commit | 372954e059956aab354d9abfa7fcdcaca40a6079 (patch) | |
tree | cd33015ecddf3f9c324bdbf65d7e7cdd74c46913 /Lib/locale.py | |
parent | bfbd1a2fd4f304e780d7652daf425fb473097abe (diff) | |
download | cpython-git-372954e059956aab354d9abfa7fcdcaca40a6079.tar.gz |
(backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r-- | Lib/locale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index 921f4f6bef..bb4aa37b29 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -621,7 +621,7 @@ locale_encoding_alias = { 'tactis': 'TACTIS', 'euc_jp': 'eucJP', 'euc_kr': 'eucKR', - 'utf_8': 'UTF8', + 'utf_8': 'UTF-8', 'koi8_r': 'KOI8-R', 'koi8_u': 'KOI8-U', # XXX This list is still incomplete. If you know more |