This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2019-03-15.12:29:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:

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()?
Date User Action Args
2019-03-15 12:29:28vstinnersetrecipients: + vstinner
2019-03-15 12:29:28vstinnersetmessageid: <>
2019-03-15 12:29:28vstinnerlinkissue36301 messages
2019-03-15 12:29:28vstinnercreate