STINNER Victor <victor.stin...@haypocalc.com> added the comment:

I'm not sure that it is correct to call nl_langinfo(CODESET) to get the locale 
encoding. The LC_CTYPE locale should maybe be set temporary to the current 
locale (""), as does locale.getpreferredencoding(). Or maybe better, 
locale.getpreferredencoding() should be called.

----------

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

Reply via email to