[issue45461] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string

2021-10-13 Thread Anatoly Myachev
Anatoly Myachev added the comment: Hello! I can reduce it a little. The buffer shoudln't be decreased, as it seems there is a some kind relation with the buffer size for IO operations. buffer = b'col1,col2,col3,col4,col5,col6\\r\\n0,2000-01-01,0,00:00:00,DuBFsyerJU,1809.392482

[issue45461] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string

2021-10-13 Thread Anatoly Myachev
New submission from Anatoly Myachev : Expected behavior - if `read()` function works correctly, then `readline()` should also works. Reproducer in file - just run: `python test.py`. Traceback (most recent call last): File "test.py", line 11, in f.readline() File "C: