Message388095
| 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. |
|