Author vstinner
Recipients vstinner
Date 2019-03-15.12:29:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552652968.58.0.444379921918.issue36301@roundup.psfhosted.org>
In-reply-to
Content
Follow-up of bpo-36142, add _Py_PreInitialize() function to "pre-initialize" Python:

* initialize memory allocators
* initialize LC_CTYPE locale and UTF-8 Mode

Py_Initialize() should also be modified to no longer coerce the C locale or enable the UTF-8 Mode:
https://bugs.python.org/issue36202#msg337915

See also:

* bpo-36202: Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake
* bpo-36204: Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?
History
Date User Action Args
2019-03-15 12:29:28vstinnersetrecipients: + vstinner
2019-03-15 12:29:28vstinnersetmessageid: <1552652968.58.0.444379921918.issue36301@roundup.psfhosted.org>
2019-03-15 12:29:28vstinnerlinkissue36301 messages
2019-03-15 12:29:28vstinnercreate