STINNER Victor <victor.stin...@haypocalc.com> added the comment:

New patch setting O_BINARY mode using _setmode() (on Windows) to stdin, stdout, 
stderr, but also to all FileIO() objects.

The patch on Py_Main() is still needed because Python may use sys.stderr when 
it is still a stdprinter object, before the final TextIOWrapper object is 
created (before the io module is loaded).

I don't know the effect of _setmode(stderr, O_BINARY) on calls to fputs(stderr, 
...) in Py_FatalError().

I would appreciate a review of parser_translate_newline.patch.

----------
Added file: http://bugs.python.org/file20294/io_binary_windows.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10841>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to