bpo-34485: Add _PyCoreConfig.stdio_encoding by vstinner · Pull Request #8881 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Merged
Conversation
- 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().
Py_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.
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