[New-bugs-announce] [issue11990] redirected output - stdout writes newline as \n in windows
report at bugs.python.org
Tue May 3 23:27:10 CEST 2011
New submission from James Hutchison <jamesghutchison at gmail.com>:
In windows, 64-bit, python *mostly* writes only a \n to stdout even though it's mode is 'w'. However it sometimes writes a \r\n on certain print statements and erratically when I have multiple processes writing to stdout.
Output looks fine in console, in IDLE, and using v.3.1
Example with multiple processes writing to stdout out using the same code: print("TESTCODE"); (note that in windows, the naked \n is ignored):
Windows program that calls python and receives its piped output is a C# .NET program.
components: IO, Windows
title: redirected output - stdout writes newline as \n in windows
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce