SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 82 Python

gh-93103: Py_DecodeLocale() uses _PyRuntime.preconfig (#93187)

The Py_DecodeLocale() and Py_EncodeLocale() now use
_PyRuntime.preconfig, rather than Py_UTF8Mode and
Py_LegacyWindowsFSEncodingFlag global configuration varibles, to
decide if the UTF-8 encoding is used or not.

As documented, these functions must not be called before Python is
preinitialized. The new PyConfig API should now be used, rather than
using deprecated functions like Py_SetPath() or PySys_SetArgv().
V
Victor Stinner committed
32b7bcffba0e6f6c96d70cafbae1488c6bc36cbc
Parent: c7667a2
Committed by GitHub <noreply@github.com> on 5/24/2022, 10:09:48 PM