[issue1395] py3k: duplicated line endings when using read(1)

Amaury Forgeot d'Arc report at bugs.python.org
Tue Nov 6 09:11:58 CET 2007


Amaury Forgeot d'Arc added the comment:

Some thoughts:
- is it ok to call replacenl multiple times on the same string? \r\r\n
and other combinations like this.
- I wonder if it is possible to correctly handle \r\n at the CHUNK_SIZE
limit without an incremental decoder. it seems that we need at least a
flag saying "\r was previously read, ignore the next \n"

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1395>
__________________________________


More information about the Python-bugs-list mailing list