[issue29240] PEP 540: Add a new UTF-8 mode
STINNER Victor
report at bugs.python.org
Tue Dec 12 20:25:01 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
Oh, PYTHONCOERCECLOCALE env var is read very early in main() by _Py_CoerceLegacyLocale(), it ignores -E command line option.
* Ignoring -E and -I is safe from a security perspective, as we only use
* the setting to turn *off* the implicit locale coercion, and anyone with
* access to the process environment already has the ability to set
* `LC_ALL=C` to override the C level locale settings anyway.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29240>
_______________________________________
More information about the Python-bugs-list
mailing list