Message412826
Serhiy: "getdefaultlocale() falls back to LANG and LANGUAGE. It allows also to specify a list of looked up environment variables. How could this use case be covered with getlocale()?"
What's your use case to use env vars rather than the current LC_CTYPE locale?
My concern is that when setlocale() is called, the current LC_CTYPE locale is inconsistent and you can get mojibake and others issues.
See for example:
https://bugs.python.org/issue43552#msg389069
Marc-Andre Lemburg wants to deprecate it:
https://bugs.python.org/issue43552#msg389076 |
|
Date |
User |
Action |
Args |
2022-02-08 10:20:19 | vstinner | set | recipients:
+ vstinner, lemburg, serhiy.storchaka, eryksun |
2022-02-08 10:20:19 | vstinner | set | messageid: <1644315619.17.0.277113475693.issue46659@roundup.psfhosted.org> |
2022-02-08 10:20:19 | vstinner | link | issue46659 messages |
2022-02-08 10:20:19 | vstinner | create | |
|