Message388095
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. |
|
Date |
User |
Action |
Args |
2021-03-04 15:21:05 | eryksun | set | recipients:
+ eryksun, lemburg, loewis, tim.golden, Arfrever, zach.ware, serhiy.storchaka, steve.dower, nervov_fan |
2021-03-04 15:21:05 | eryksun | set | messageid: <1614871265.62.0.866773934487.issue20088@roundup.psfhosted.org> |
2021-03-04 15:21:05 | eryksun | link | issue20088 messages |
2021-03-04 15:21:05 | eryksun | create | |
|