Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:fix_surrogateCopy head branch name to clipboard
Mar 19, 2019
Merged

bpo-36301: Error if decoding pybuilddir.txt fails#12422
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:fix_surrogateCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Mar 19, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.