[New-bugs-announce] [issue11990] redirected output - stdout writes newline as \n in windows
James Hutchison
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):
TESTCODETESTCODE
TESTCODE
TESTCODE
TESTCODETESTCODETESTCODE
TESTCODE
Windows program that calls python and receives its piped output is a C# .NET program.
----------
components: IO, Windows
messages: 135076
nosy: Jimbofbx
priority: normal
severity: normal
status: open
title: redirected output - stdout writes newline as \n in windows
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11990>
_______________________________________
More information about the New-bugs-announce
mailing list