SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 71 Python

bpo-32030: Add _Py_FindEnvConfigValue() (#4963)

Add a new _Py_FindEnvConfigValue() function: code shared between
Windows and Unix implementations of _PyPathConfig_Calculate() to read
the pyenv.cfg file.

_Py_FindEnvConfigValue() now uses _Py_DecodeUTF8_surrogateescape()
instead of using a Python Unicode string, the Python API must not be
used early during Python initialization. Same change in Unix
search_for_exec_prefix(): use _Py_DecodeUTF8_surrogateescape().

Cleanup also encode_current_locale(): PyMem_RawFree/PyMem_Free can be
called with NULL.

Fix also "NUL byte" => "NULL byte" typo.
V
Victor Stinner committed
9bee329130aae5a13050c08dab9d349b76e66835
Parent: 9dd7620
Committed by GitHub <noreply@github.com> on 12/21/2017, 3:49:13 PM