New submission from tierlieb:
Within locale.py in setlocale your have this piece of code:
if locale and type(locale) is not type(""):
# convert to string
locale = normalize(_build_localename(locale))
That does not work with unicode strings as I found out after wondering quite a
bit about the difference was between my tests and my production code...
So either expand the check here to include type(u"") or make _build_localename
smarter.
----------
components: Unicode
messages: 255461
nosy: ezio.melotti, haypo, tierlieb
priority: normal
severity: normal
status: open
title: locale.setlocale does not work with unicode strings
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com