This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients ezio.melotti, jtaylor, lemburg
Date 2011-08-15.12:01:47
SpamBayes Score 2.4440088e-09
Marked as misclassified No
Message-id <4E490AA7.8040506@egenix.com>
In-reply-to <1313406762.16.0.00679239298306.issue12752@psf.upfronthosting.co.za>
Content
Julian Taylor wrote:
> 
> New submission from Julian Taylor <jtaylor.debian@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

This looks like a side-effect of the change Antoine made to the locale
module when trying to make the case mapping work in a non-locale
dependent way.
History
Date User Action Args
2011-08-15 12:01:48lemburgsetrecipients: + lemburg, ezio.melotti, jtaylor
2011-08-15 12:01:47lemburglinkissue12752 messages
2011-08-15 12:01:47lemburgcreate