[issue28162] WindowsConsoleIO readall() fails if first line starts with Ctrl+Z
Steve Dower
report at bugs.python.org
Sat Sep 17 16:54:15 EDT 2016
Steve Dower added the comment:
The fix here was changing "n > 0 && buf[len] == '\x1a'" into "n == 0 || buf[len] == '\x1a'" when returning an empty bytes. Previously we were falling into the conversion code which wasn't happy with n == 0.
----------
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28162>
_______________________________________
More information about the Python-bugs-list
mailing list