[issue6501] Fatal LookupError: unknown encoding: cp0 on Windows embedded startup.
Graham Dumpleton
report at bugs.python.org
Wed Jul 22 14:15:34 CEST 2009
Graham Dumpleton <Graham.Dumpleton at gmail.com> added the comment:
The workaround of using:
#if defined(WIN32) && PY_MAJOR_VERSION >= 3
_wputenv(L"PYTHONIOENCODING=cp1252:backslashreplace");
#endif
Py_Initialize();
gets around the crash on startup.
I haven't done sufficient testing to know if this may introduce any other
problems given that one is overriding default I/O encoding for whole
process.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6501>
_______________________________________
More information about the Python-bugs-list
mailing list