You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the fix for bug 1076985 (Incorrect
behaviour of StreamReader.readline leads to crash) has
introduced a new bug.
using current cvs Python on Linux, I observe faulty
behavior of the readline() method on file-like objects
returned from the codecs module.
See the attached example.txt.
The readline() breaks certain lines in half.
It only happens when a certain encoding is used, so regular
file objects behave as expected. Also, readlines()
works fine.
The problem is that the first readline() reads more than the
first line, returns the first line and puts back the rest
for the next read. The next call to readline() discovers
that there is already data there and doesn't call read()
again. I'm working on a patch.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: