Akira Li added the comment: To make _pyio correspond to the C version I've added
sys.platform in {'win32', 'cygwin'} condition. See the attached pyio_setmode.diff It is not clear why the absence of _setmode(fd, os.O_BINARY) is not detected by tests. (a) a corresponding test should be added (b) OR _setmode() call should be removed from both Python and C io versions ---------- keywords: +patch nosy: +akira Added file: http://bugs.python.org/file40222/pyio_setmode.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24881> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com