STINNER Victor <victor.stin...@haypocalc.com> added the comment: >>> sys.getfilesystemencoding() 'iso8859-1'
Ok, I expected this result. Can you also try: $ LC_ALL=C ./python -c "import sys; print(ascii(sys.argv))" $(echo -ne "abc\xff") ['-c', 'abc\udcff'] $ LC_ALL=C python3.1 -c "import locale; print(locale.nl_langinfo(locale.CODESET))" ANSI_X3.4-1968 $ LC_ALL=C python3.1 -c "import locale; print(locale.getpreferredencoding())" ANSI_X3.4-1968 Anyway, test_undecodable_env() is not written to support ISO-8859-1 filesystem encoding. I should patch the test to check the filesystem encoding. ---------- _______________________________________ 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