[issue10154] locale.normalize strips "-" from UTF-8, which fails on Mac

Stephen Hansen report at bugs.python.org
Thu Oct 21 15:53:59 CEST 2010


Stephen Hansen <me+python at ixokai.io> added the comment:

Mark, the locals() right before "if encoding:" (line 399) are:

>>> locale.normalize("en_US.UTF-8")
{'code': 'en_US.ISO8859-1', 'langname': 'en_US', 'encoding': 'UTF8', 'norm_encoding': 'utf_8', 'defenc': 'ISO8859-1', 'localename': 'en_US.UTF-8', 'lookup_name': 'en_us.utf-8', 'fullname': 'en_us.utf-8'}
'en_US.UTF8'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10154>
_______________________________________


More information about the Python-bugs-list mailing list