[pypy-issue] Issue #2350: Windows PyPy2 sys.stderr emitting \r\r\n line separators (pypy/pypy)

John Vandenberg issues-reply at bitbucket.org
Thu Jul 21 10:54:51 EDT 2016


New issue 2350: Windows PyPy2 sys.stderr emitting \r\r\n line separators
https://bitbucket.org/pypy/pypy/issues/2350/windows-pypy2-sysstderr-emitting-r-r-n

John Vandenberg:

If a process prints a line to stderr, pypy replaces the newline with `\r\r\n`.

This happens with any of these approaches:
```
from __future__ import print_function
print('foo', file=sys.stderr)
sys.stderr.write('foo\n')
sys.stderr.writelines(['foo\n'])
```

This doesnt occur for stdout, which emits a normal windows line ending of `\r\n`.




More information about the pypy-issue mailing list