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 nadeem.vawda
Recipients Arfrever, Michael.Fox, nadeem.vawda, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2013-05-20.14:42:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369060963.08.0.432691945326.issue18003@psf.upfronthosting.co.za>
In-reply-to
Content
No, that is the intended behavior for binary streams - they operate at
the level of individual byes. If you want to treat your input file as
Unicode-encoded text, you should open it in text mode. This will return a
TextIOWrapper which handles the decoding and line splitting properly.
History
Date User Action Args
2013-05-20 14:42:43nadeem.vawdasetrecipients: + nadeem.vawda, rhettinger, pitrou, vstinner, Arfrever, serhiy.storchaka, Michael.Fox
2013-05-20 14:42:43nadeem.vawdasetmessageid: <1369060963.08.0.432691945326.issue18003@psf.upfronthosting.co.za>
2013-05-20 14:42:43nadeem.vawdalinkissue18003 messages
2013-05-20 14:42:42nadeem.vawdacreate