[issue34639] PYTHONCOERCECLOCALE is ignored when using -E or -I option

STINNER Victor report at bugs.python.org
Thu Sep 13 14:27:12 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> Respecting -E and -I isn't a problem per se - the problem is moving the _Py_CoerceLegacyLocale call to a point that's incredibly late in the startup process *just* to get it to respect those flags.

Would you mind to elaborate how it is an issue? The LC_CTYPE is coerced *before* the configuration is read a second time. If there is an issue, would you mind to show an example where something is decoded from the wrong encoding?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34639>
_______________________________________


More information about the Python-bugs-list mailing list