STINNER Victor <vstin...@python.org> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46659>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to