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 serhiy.storchaka
Recipients lemburg, loewis, serhiy.storchaka
Date 2015-12-05.21:19:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'uk_UA')
>>> locale.getlocale(locale.LC_NUMERIC)
('uk_UA', 'KOI8-U')
>>> locale.nl_langinfo(locale.THOUSEP)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'locale' codec can't decode byte 0x9a in position 0: Invalid or incomplete multibyte or wide character

Looks as locale.nl_langinfo() always uses the UTF-8 encoding (or may be locale.getpreferredencoding()).
Date User Action Args
2015-12-05 21:19:05serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis
2015-12-05 21:19:05serhiy.storchakasetmessageid: <>
2015-12-05 21:19:05serhiy.storchakalinkissue25812 messages
2015-12-05 21:19:05serhiy.storchakacreate