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 Guillaume Aldebert, eryksun, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2017-11-07.13:29:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510061347.87.0.213398074469.issue31966@psf.upfronthosting.co.za>
In-reply-to
Content
The error is in _io__WindowsConsoleIO_write_impl. If it's passed a length 0 buffer, it still tries to decode it via MultiByteToWideChar, which fails as documented. As Serhiy says, it can simply return Python int(0) in the zero-length case.
History
Date User Action Args
2017-11-07 13:29:07eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, zach.ware, serhiy.storchaka, steve.dower, Guillaume Aldebert
2017-11-07 13:29:07eryksunsetmessageid: <1510061347.87.0.213398074469.issue31966@psf.upfronthosting.co.za>
2017-11-07 13:29:07eryksunlinkissue31966 messages
2017-11-07 13:29:07eryksuncreate