Author vstinner
Recipients pitrou, sable, vstinner
Date 2011-02-14.13:23:54
SpamBayes Score 1.19967e-05
Marked as misclassified No
Message-id <1297689835.53.0.256193427194.issue11193@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 test_subprocess.py uses os.environ which uses sys.getfilesystemencoding(), whereas test_undecodable_code() of test_cmd_line.py 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.
History
Date User Action Args
2011-02-14 13:23:55vstinnersetrecipients: + vstinner, pitrou, sable
2011-02-14 13:23:55vstinnersetmessageid: <1297689835.53.0.256193427194.issue11193@psf.upfronthosting.co.za>
2011-02-14 13:23:54vstinnerlinkissue11193 messages
2011-02-14 13:23:54vstinnercreate