[issue26990] file.tell affect decoding
Martin Panter added the comment: See also the second part of Issue 25863, a similar symptom with the iso-2022-jp codec. I suspect many of the multibyte CJK type codecs don’t properly support saving and restoring their state. -- nosy: +martin.panter
[issue26990] file.tell affect decoding
New submission from mfmain: C:\tmp>hexdump badtell.txt 00: 61 20 6B 0D 0A D2 BB B0-E3 a k.. C:\tmp>type test.py with open(r'c:\tmp\badtell.txt', "r", encoding='gbk') as f: while True: pos = f.tell() line = f.readline();