Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 19, 2019
Merged

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

merged 1 commit into from
Mar 19, 2019

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