This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sjoerd
Recipients
Date 2002-06-17.13:56:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
python -u is supposed to put sys.stdin and sys.stdout
in binary mode on systems where such things matter.
This does not happen on Window under Cygwin.

Try
python -u -c 'import sys;
open("x","wb").write(sys.stdin.read())' < some-text-file

and notice that the newly created file "x" has just \n
line endings instead of \r\n.

A patch is included.
History
Date User Action Args
2007-08-23 14:02:12adminlinkissue570044 messages
2007-08-23 14:02:12admincreate