Author vstinner
Recipients pitrou, sable, vstinner
Date 2011-02-14.14:32:22
SpamBayes Score 8.04408e-06
Marked as misclassified No
Message-id <1297693945.03.0.580522341252.issue11193@psf.upfronthosting.co.za>
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: <1297693945.03.0.580522341252.issue11193@psf.upfronthosting.co.za>
2011-02-14 14:32:22vstinnerlinkissue11193 messages
2011-02-14 14:32:22vstinnercreate