Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 19, 2019

Python initialization now fails if decoding pybuilddir.txt
configuration file fails at startup.

_PyPathConfig_Calculate() now reports memory allocation failure and
decoding error on decoding pybuilddir.txt content from
UTF-8/surrogateescape.

https://bugs.python.org/issue36301

Python initialization now fails if decoding pybuilddir.txt configuration file fails at startup. _PyPathConfig_Calculate() now reports memory allocation failure and decoding error on decoding pybuilddir.txt content from UTF-8/surrogateescape.
@vstinner
Copy link
Member Author

In practice, decoding UTF-8/surrogateescape cannot fail: only memory allocation failure should occur.

@vstinner vstinner merged commit 5f9cf23 into python:master Mar 19, 2019
@vstinner vstinner deleted the fix_surrogate branch March 19, 2019 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants