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 Arfrever, amaury.forgeotdarc, lemburg, pitrou, vstinner
Date 2010-09-24.12:15:31
SpamBayes Score 5.073464e-08
Marked as misclassified No
Message-id <201009241415.22397.victor.stinner@haypocalc.com>
In-reply-to <1285330113.79.0.0115943788085.issue9630@psf.upfronthosting.co.za>
Content
> Not sure it's related, but there seems to be a bug:

It's not a bug, it's a feature :-) If you specify a non-existing locale, the 
GNU libc fails back to ascii.

$ locale -a
C
français
french
fr_FR
fr_FR@euro
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.utf8

$ LC_CTYPE=fr_FR.iso88591 ./python -c "import locale; 
print(locale.nl_langinfo(locale.CODESET))"
ISO-8859-1

$ LC_CTYPE=xxx ./python -c "import locale; 
print(locale.nl_langinfo(locale.CODESET))"
ANSI_X3.4-1968
History
Date User Action Args
2010-09-24 12:15:32vstinnersetrecipients: + vstinner, lemburg, amaury.forgeotdarc, pitrou, Arfrever
2010-09-24 12:15:31vstinnerlinkissue9630 messages
2010-09-24 12:15:31vstinnercreate