Message128543
> 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. |
|
Date |
User |
Action |
Args |
2011-02-14 13:23:55 | vstinner | set | recipients:
+ vstinner, pitrou, sable |
2011-02-14 13:23:55 | vstinner | set | messageid: <1297689835.53.0.256193427194.issue11193@psf.upfronthosting.co.za> |
2011-02-14 13:23:54 | vstinner | link | issue11193 messages |
2011-02-14 13:23:54 | vstinner | create | |
|