[issue25863] ISO-2022 seeking forgets state

Martin Panter report at bugs.python.org
Tue Jan 19 21:09:55 EST 2016


Martin Panter added the comment:

After thinking about Issue 26158, I realize the seek() magic numbers don’t store any _encoder_ state, only _decoder_ state. That would explain the first bug (write, seek, then read). Though for this codec I suspect the decoder state is not recorded either, hence the bug with tell().

Personally I don’t care much for seeking text files. But if someone wanted to fix the second bug, that might require fixing the incremental decoder’s getstate() implementation.

----------

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


More information about the Python-bugs-list mailing list