[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

STINNER Victor report at bugs.python.org
Tue Nov 21 10:53:24 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

> 2. statically initialize the "raw" allocator with defaults, enough
>   to make PyMem_RawMalloc() and PyMem_RawFree() work pre-init (this
>   is what my PR does)

As I explained, the code to initialize PyMem_Raw allocator is complex and I would really prefer to only initialize it "partially" to prevent bad surprises.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32096>
_______________________________________


More information about the Python-bugs-list mailing list