This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-09-15.03:25:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473909917.67.0.236391762597.issue28162@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-09-15 03:25:17eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower
2016-09-15 03:25:17eryksunsetmessageid: <1473909917.67.0.236391762597.issue28162@psf.upfronthosting.co.za>
2016-09-15 03:25:17eryksunlinkissue28162 messages
2016-09-15 03:25:17eryksuncreate