Message 145963 - Python tracker
win_console.patch: a more complete prototype * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole and BytesConsole classes which use WriteConsoleW and WriteConsoleA * UnicodeConsole inherits from io.TextIOBase and BytesConsole inherits from io.RawIOBase * Revert the workaround for WriteConsoleA bug from io.FileIO sys.stdout and/or sys.stderr are only replaced if there are not redirected.