Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I think you should use the locale's encoding to process the data, ie. either mbstowcs, then Unicode from wchar_t, or decode with the nl_langinfo(CODESET) encoding. You might have to set the locale before this can work (which isn't thread-safe), so it might be tricky to implement.
Python already does nl_langinfo at startup, but then restores the locale. It should probably save the default locale's codeset somewhere, as C code requires it in many places. There is also a "system" encoding, but that is UTF-8 independent of the system. ---------- nosy: +loewis _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com