]> granicus.if.org Git - python/commit
Issue #10841: set binary mode on files; the parser translates newlines
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 7 Jan 2011 18:47:22 +0000 (18:47 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 7 Jan 2011 18:47:22 +0000 (18:47 +0000)
commit89e343660623862acbd40cc617b4af262d6c799f
tree6ffb758ccc88b03797670e983e9e2917a33fc77c
parentbdde5061163bd773f56e3774f38fa80344267f6f
Issue #10841: set binary mode on files; the parser translates newlines

On Windows, set the binary mode on stdin, stdout, stderr and all
io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
translates newlines (\r\n => \n).
Misc/NEWS
Modules/_io/fileio.c
Modules/main.c
Parser/tokenizer.c