[issue13119] Newline for print() is \n on Windows, and not \r\n as expected
STINNER Victor
report at bugs.python.org
Fri Oct 7 10:52:33 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
I changed how newlines are handled on Windows to fix an issue with CGI: see the issue #10841.
changeset: 67431:0933c3753a71
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Jan 07 18:47:22 2011 +0000
files: Misc/NEWS Modules/_io/fileio.c Modules/main.c Parser/tokenizer.c
description:
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).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13119>
_______________________________________
More information about the Python-bugs-list
mailing list