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 cstratak, vstinner
Date 2017-10-30.14:53:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509375199.57.0.213398074469.issue31900@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce the bug with Python 3.6 on Fedora 26 and these locales:

* LC_ALL = LC_CTYPE = fr_FR (encoding = ISO8859-1)
* LC_NUMERIC= es_MX.utf8 (encoding = UTF-8)


Good: LC_NUMERIC = LC_CTYPE = LC_ALL = "es_MX.utf8"

haypo@selma$ env -i python3 -c 'import locale; locale.setlocale(locale.LC_ALL, "es_MX.utf8"); print(ascii(locale.localeconv()["thousands_sep"]))'

=> '\u2009'


Bug: LC_NUMERIC = "es_MX.utf8" but LC_CTYPE = LC_ALL = "fr_FR"

haypo@selma$ env -i python3 -c 'import locale; locale.setlocale(locale.LC_ALL, "fr_FR"); locale.setlocale(locale.LC_NUMERIC, "es_MX.utf8"); print(ascii(locale.localeconv()["thousands_sep"]))'

=> '\xe2\x80\x89'
History
Date User Action Args
2017-10-30 14:53:19vstinnersetrecipients: + vstinner, cstratak
2017-10-30 14:53:19vstinnersetmessageid: <1509375199.57.0.213398074469.issue31900@psf.upfronthosting.co.za>
2017-10-30 14:53:19vstinnerlinkissue31900 messages
2017-10-30 14:53:19vstinnercreate