bpo-34485: Add _PyCoreConfig.stdio_encoding by vstinner · Pull Request #8881 · python/cpython
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 34.4k
Merged
bpo-34485: Add _PyCoreConfig.stdio_encoding#8881
vstinner merged 1 commit intopython:masterfrom
vstinner:stdio_encoding
bpo-34485: Add _PyCoreConfig.stdio_encoding#8881
vstinner merged 1 commit intopython:masterfrom
vstinner:stdio_encoding
Conversation
Copy link Copy Markdown
Member
- Add stdio_encoding and stdio_errors fields to _PyCoreConfig
- When PYTHONIOENCODING environment variable only contains an
encoding, stdio_errors is now set explicitly to "strict". - Add some unit tests on stdio_encoding and stdio_errors.
- Add _Py_ClearStandardStreamEncoding() private function.
- pymain_free() now calls _Py_ClearStandardStreamEncoding().
vstinner
added
the
skip news
label
vstinner
requested review from
ncoghlan,
serhiy-storchaka and
zooba
the-knights-who-say-ni
added
the
CLA signed
label
bedevere-bot
added
the
awaiting merge
label
Copy link Copy Markdown
Member Author
vstinner
commented
Aug 23, 2018
vstinner commented
Aug 23, 2018Py_SetStandardStreamEncoding() sets Py_LegacyWindowsStdioFlag flag to 1 if the encoding is set. Do we also need to set Py_LegacyWindowsStdioFlag flag to 1 if stdio_encoding is set?
* Add stdio_encoding and stdio_errors fields to _PyCoreConfig * Add unit tests on stdio_encoding and stdio_errors.
vstinner
merged commit
dfe0dc7
into
python:master
bedevere-bot
removed
the
awaiting merge
label
vstinner
deleted the
stdio_encoding
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment