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, vstinner
Date 2018-01-15.16:08:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516032510.37.0.467229070634.issue32555@psf.upfronthosting.co.za>
In-reply-to
Content
Example of bug on FreeBSD 11:

haypo@freebsd$ LC_ALL=C ./python -c 'import locale, os; locale.setlocale(locale.LC_ALL, "fr_FR.ISO8859-1"); print(ascii(os.strerror(2)))'

'Fichier ou r\udce9pertoire inexistant'

Expected result:

haypo@freebsd$ LC_ALL=fr_FR.ISO8859-1 ./python -c 'import locale, os; locale.setlocale(locale.LC_ALL, ""); print(ascii(os.strerror(2)))'

'Fichier ou r\xe9pertoire inexistant'
History
Date User Action Args
2018-01-15 16:08:30vstinnersetrecipients: + vstinner, ezio.melotti
2018-01-15 16:08:30vstinnersetmessageid: <1516032510.37.0.467229070634.issue32555@psf.upfronthosting.co.za>
2018-01-15 16:08:30vstinnerlinkissue32555 messages
2018-01-15 16:08:30vstinnercreate