Message276508
For a console readall(), if the first line starts with '\x1a' (i.e. Ctrl+Z), it breaks out of its read loop before incrementing len. Thus the input isn't handled properly as EOF, for which the check requires len > 0. Instead it ends up calling WideCharToMultiByte with len == 0, which fails as follows:
>>> sys.stdin.buffer.raw.read()
^Z
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [WinError 87] The parameter is incorrect |
|
Date |
User |
Action |
Args |
2016-09-15 03:25:17 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower |
2016-09-15 03:25:17 | eryksun | set | messageid: <1473909917.67.0.236391762597.issue28162@psf.upfronthosting.co.za> |
2016-09-15 03:25:17 | eryksun | link | issue28162 messages |
2016-09-15 03:25:17 | eryksun | create | |
|