]> granicus.if.org Git - python/commit
Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of...
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 10:44:54 +0000 (12:44 +0200)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 10:44:54 +0000 (12:44 +0200)
commit02a67ac72be5adb37431b18c3f4b7cb060be6e16
tree1aa59e24e240d529536068162aae0362efe809ca
parente98f177ca64de8a4ab779902a3a5926d48f035f2
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.
Lib/locale.py
Misc/NEWS