Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Buffering applies when writing, not when reading a file.
There is indeed a problem in codecs.py: after a readline(), read() will return the content of the internal buffer, and not more. The "size" parameter is a hint, and should not be used to decide whether the character buffer is enough to satisfy the read() request. Patch is attached, with test. ---------- keywords: +patch nosy: +amaury.forgeotdarc stage: test needed -> patch review Added file: http://bugs.python.org/file16705/codecs_read.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com