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 eryksun
Recipients Arfrever, eryksun, lemburg, loewis, nervov_fan, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2021-03-04.15:21:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614871265.62.0.866773934487.issue20088@roundup.psfhosted.org>
In-reply-to
Content
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 prefer to never guess since the encoding for a BCP-47 locale name can be directly queried. But this issue can be restricted to POSIX. What to do in Windows is already being considered in more recent issues: bpo-23425, bpo-37945, and bpo-43115.
History
Date User Action Args
2021-03-04 15:21:05eryksunsetrecipients: + eryksun, lemburg, loewis, tim.golden, Arfrever, zach.ware, serhiy.storchaka, steve.dower, nervov_fan
2021-03-04 15:21:05eryksunsetmessageid: <1614871265.62.0.866773934487.issue20088@roundup.psfhosted.org>
2021-03-04 15:21:05eryksunlinkissue20088 messages
2021-03-04 15:21:05eryksuncreate