Skip to content

Conversation

@methane
Copy link
Member

@methane methane commented Apr 14, 2022

TextIOWrapper.__init__ called os.device_encoding(file.fileno()) if fileno is 0-2.

It was complex, never documented, and didn't work for most cases.

methane added 2 commits April 14, 2022 18:07
`TextIOWrapper.__init__` calls `os.device_encoding(file.fileno())` if
fileno is 0-2. But it is very rerely works, and never documented
behavior.
@methane methane linked an issue Apr 14, 2022 that may be closed by this pull request
@methane methane merged commit 6fdb62b into python:main Apr 19, 2022
@methane methane deleted the device-encoding2 branch April 19, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove console encoding support from TextIOWrapper.

2 participants