STINNER Victor added the comment:

I don't see the benefit of supporting Unicode strings for setlocale() 
arguments: locale name are always encodable to ASCII, so loc.decode('ascii') is 
enough to workaround the issue.

But well, I think it's ok if it doesn't make the code much more complex ;-)

I wrote a patch, what do you think? Is it worth it? ;-)

----------
keywords: +patch
Added file: http://bugs.python.org/file41175/setlocale_unicode.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to