New submission from STINNER Victor <vstin...@redhat.com>:

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()?

----------
components: Interpreter Core
messages: 337982
nosy: vstinner
priority: normal
severity: normal
status: open
title: Add _Py_PreInitialize() function
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36301>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to