This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, sable, vstinner
Date 2011-02-14.14:32:22
SpamBayes Score 8.044077e-06
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2011-02-14 14:32:25vstinnersetrecipients: + vstinner, pitrou, sable
2011-02-14 14:32:25vstinnersetmessageid: <[email protected]>
2011-02-14 14:32:22vstinnerlinkissue11193 messages
2011-02-14 14:32:22vstinnercreate