STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11193> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com