[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.
STINNER Victor
report at bugs.python.org
Tue Nov 21 10:52:10 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
Nick: "Should we deprecate our implied support for calling Py_DecodeLocale() before calling Py_Initialize()?"
Please don't do that. Py_DecodeLocale() is the best available function to decode paths and environment variables to initialize Python. The implementation of Py_DecodeLocale() is very complex, but we need this complexity to decode "correctly" OS data.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32096>
_______________________________________
More information about the Python-bugs-list
mailing list