Author Drekin
Recipients David.Sankel, Drekin, akira, amaury.forgeotdarc, christian.heimes, christoph, davidsarah, ezio.melotti, flox, giampaolo.rodola, hippietrail, lemburg, mark, mhammond, pitrou, santoso.wijaya, smerlin, sorin, terry.reedy, tim.golden, tzot, v+python, vstinner
Date 2013-09-14.10:15:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379153717.32.0.857637539316.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
Hello again. I have rewritten the custom stdio objects and implemented them as raw io reading and writing bytes in UTF-16-LE encoding. They are then wrapped in standard BufferedReader/Writer and TextIOWrapper objects. This approach also solves a bug of wrong string length given to WriteConsoleW when the string contained supplementary character. Since we are waiting for Ctrl-C signal to arrive, this implmentation doesn't suffer from http://bugs.python.org/issue18597 . It seems to work when main script is executed however it doesn't work in Python interactive REPL since the REPL doesn't use sys.stdin for input. However it uses its encoding which results in mess when sys.stdin is changed to object with different encoding like UTF-16-LE. See http://bugs.python.org/issue17620 .
History
Date User Action Args
2013-09-14 10:15:17Drekinsetrecipients: + Drekin, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, pitrou, vstinner, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, sorin, flox, davidsarah, santoso.wijaya, akira, David.Sankel, smerlin
2013-09-14 10:15:17Drekinsetmessageid: <1379153717.32.0.857637539316.issue1602@psf.upfronthosting.co.za>
2013-09-14 10:15:17Drekinlinkissue1602 messages
2013-09-14 10:15:16Drekincreate