]> granicus.if.org Git - python/commit
(backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8"...
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 11:22:30 +0000 (13:22 +0200)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 11:22:30 +0000 (13:22 +0200)
commit372954e059956aab354d9abfa7fcdcaca40a6079
treecd33015ecddf3f9c324bdbf65d7e7cdd74c46913
parentbfbd1a2fd4f304e780d7652daf425fb473097abe
(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.
Lib/locale.py
Misc/NEWS