Christian Heimes added the comment:
At first glance your proposed fix looks like an easy hack to get around the
issue. However it's not going to work properly. Embedded Python interpreters
should isolate themselves from the user's environment. When
`Py_IgnoreEnvironmentFlag` is enabled, Py_GETENV() always returns NULL.
IMHO we can't get around Py_GetIOEncoding(), Py_SetIOEncoding() and
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list