[issue11193] test_subprocess error on AIX
STINNER Victor
report at bugs.python.org
Mon Feb 14 14:23:55 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> 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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11193>
_______________________________________
More information about the Python-bugs-list
mailing list