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 <1449350345.3.0.205814810685.issue25812@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'uk_UA')
'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()).
History
Date User Action Args
2015-12-05 21:19:05serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis
2015-12-05 21:19:05serhiy.storchakasetmessageid: <1449350345.3.0.205814810685.issue25812@psf.upfronthosting.co.za>
2015-12-05 21:19:05serhiy.storchakalinkissue25812 messages
2015-12-05 21:19:05serhiy.storchakacreate