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 

nosy: +christian.heimes

Python tracker <>
Python-bugs-list mailing list

Reply via email to