[New-bugs-announce] [issue12752] locale.normalize does not take unicode strings
Julian Taylor
report at bugs.python.org
Mon Aug 15 13:12:42 CEST 2011
New submission from Julian Taylor <jtaylor.debian at googlemail.com>:
using unicode strings for locale.normalize gives following traceback with python2.7:
~$ python2.7 -c 'import locale; locale.normalize(u"en_US")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/locale.py", line 358, in normalize
fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode
with python2.6 it works and it also works with non-unicode strings in 2.7
----------
components: Unicode
messages: 142118
nosy: jtaylor
priority: normal
severity: normal
status: open
title: locale.normalize does not take unicode strings
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12752>
_______________________________________
More information about the New-bugs-announce
mailing list