[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: The locale_alias database was extended to support "en_AG" and many others, but I'd still prefer Serhiy's suggestion to not guess the codeset when checking the default LC_CTYPE category. Use locale.nl_langinfo(locale.CODESET), if it's available. In Windows, I'd p

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2019-07-25 Thread Саша Черных
Change by Саша Черных : -- nosy: +nervov_fan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2015-02-12 Thread eryksun
eryksun added the comment: For 3.5 this affects Windows as well, since the new CRT supports RFC1766 language codes, but only without a codepage spec: Python 3.5.0a1 (v3.5.0a1:5d4b6a57d5fd, Feb 7 2015, 18:15:14) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credit

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: With #20079 closed but #20087 still open where do we stand with this issue? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker __

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2013-12-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2013-12-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> import locale, _locale >>> _locale.setlocale(locale.LC_CTYPE, 'en_AG') 'en_AG' >>> _locale.setlocale(locale.LC_CTYPE) 'en_AG' >>> locale.getlocale(locale.LC_CTYPE) Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/L