[issue18337] codecs: StremReader readline() breaks on undocumented characters

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report. This is a duplicate of issue18291. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> codecs.open interprets space as line ends versions: +Python 3.3, Pyt

[issue18337] codecs: StremReader readline() breaks on undocumented characters

2013-07-01 Thread Thomas Guettler
New submission from Thomas Guettler: The stream reader of codecs.open() breaks on undocumented characters: http://docs.python.org/2/library/codecs.html?highlight=codecs%20readline#codecs.StreamReader.readline import tempfile temp=tempfile.mktemp() fd=open(temp, 'wb') fd.write('abc\ndef\x85ghi')