Author vstinner
Recipients pitrou, sable, vstinner
Date 2011-02-14.13:23:54
SpamBayes Score 1.19967e-05
Marked as misclassified No
Message-id <>
> I don't understand why the test pass on FreeBSD, Solaris and
> Mac OS X, but not on AIX.

Oh, the command line and the filesystem encodings may be different. test_undecodable_env() of uses os.environ which uses sys.getfilesystemencoding(), whereas test_undecodable_code() of uses _Py_char2wchar() which uses mbstowcs() functions (which use the locale encoding).

sys.getfilesystemencoding() is initialized from nl_langinfo(CODESET).

nl_langinfo(CODESET) gives maybe "ISO-8859-1" (or an alias to this encoding) even if LC_ALL=C.
Date User Action Args
2011-02-14 13:23:55vstinnersetrecipients: + vstinner, pitrou, sable
2011-02-14 13:23:55vstinnersetmessageid: <>
2011-02-14 13:23:54vstinnerlinkissue11193 messages
2011-02-14 13:23:54vstinnercreate