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 ezio.melotti, methane, vstinner
Date 2017-01-11.23:00:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hum, pep540-3.patch doesn't work if the locale encoding is different than ASCII and UTF-8. argv must be reencoded:

$ LC_ALL=fr_FR ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\xff']

The result should not depend on the locale, it should be the same than:

$ LC_ALL=fr_FR.utf8 ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\udcff']

$ LC_ALL=C ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\udcff']
Date User Action Args
2017-01-11 23:00:07vstinnersetrecipients: + vstinner, ezio.melotti, methane
2017-01-11 23:00:07vstinnersetmessageid: <>
2017-01-11 23:00:07vstinnerlinkissue29240 messages
2017-01-11 23:00:07vstinnercreate