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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2013-09-08.16:28:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378657724.77.0.882529649295.issue18977@psf.upfronthosting.co.za>
In-reply-to
Content
The uu module can be run as command-line tool. In Python 2, "uu -t infile outfile" opens input file in text mode, i.e. convert '\r\n' to '\n' on Windows and '\r' to '\n' on Mac Classic, and "uu -d -t infile outfile" opens output file in text mode, i.e. convert '\n' to '\r\n' on Windows and '\n' to '\r' on Mac Classic. In Python 3 this option has no effect.

The proposed patch restores former behavior and extends it. Encoding with -t option now uses universal newlines for reading, and decoding with -t option now converts '\n' to os.linesep for writing. In additional text mode now works with standard input/output.

This change perhaps is too large for the fix of such  insignificant bug and that is why I propose it as a new feature.
History
Date User Action Args
2013-09-08 16:28:44serhiy.storchakasetrecipients: + serhiy.storchaka
2013-09-08 16:28:44serhiy.storchakasetmessageid: <1378657724.77.0.882529649295.issue18977@psf.upfronthosting.co.za>
2013-09-08 16:28:44serhiy.storchakalinkissue18977 messages
2013-09-08 16:28:44serhiy.storchakacreate