[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Christian Heimes
report at bugs.python.org
Wed Nov 28 07:30:27 CET 2012
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 Py_IOEncoding.
----------
nosy: +christian.heimes
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16129>
_______________________________________
More information about the Python-bugs-list
mailing list