MunSic JEONG <rus...@gmail.com> added the comment:

On OSX, _locale.setlocale raise locale.Error with arg 'UTF8' but ok with 
'UTF-8'. and setlocale tries to normalize localename with locale.normalize(). 
and locale.normalize() always change encoding to 'UTF8' (locale.py:646). 

So changes in locale.normalize could fix this issue at least on OSX. 

patch and unittest against p3k is attached.



I did not search why normalize() changes 'utf_8' to 'UTF8' until now. but I 
would post if I get answer in subversion log.

----------
keywords: +patch
Added file: http://bugs.python.org/file19793/issue10498.patch

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

Reply via email to