Skip to content

bpo-36301: Error if decoding pybuilddir.txt fails#12422

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:fix_surrogate
Mar 19, 2019
Merged

bpo-36301: Error if decoding pybuilddir.txt fails#12422
vstinner merged 1 commit intopython:masterfrom
vstinner:fix_surrogate

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants