[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

Amaury Forgeot d'Arc report at bugs.python.org
Wed Mar 31 13:11:08 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Updated patch.

[I also tried to avoid reading the underlying file if len(self.bytebuffer)>=size, but it does not work with multibytes chars when size=1]

----------
Added file: http://bugs.python.org/file16706/codecs_read-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8260>
_______________________________________


More information about the Python-bugs-list mailing list