Author serhiy.storchaka
Recipients JBernardo, Ramchandra Apte, Rosuav, William.Schwartz, asvetlov, ezio.melotti, loewis, ned.deily, python-dev, roger.serwy, serhiy.storchaka, terry.reedy
Date 2014-01-05.11:31:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388921490.42.0.398499551215.issue13153@psf.upfronthosting.co.za>
In-reply-to
Content
As far as the patch becomes too complicated, I propose minimalist patch which fixes only this issue. I.e. IDLE will no longer silently closed when paste some unusual text (non-BMP on Windows or illegal UTF-8 on Linux). It fixes converting Tcl string to Python string for arguments of Python callback. \xc0\x80 is translated to the NUL character (U+0000) because Tcl uses "modified" UTF-8. All other illegal UTF-8 codes are replaced by the replacement character (U+FFFD).
History
Date User Action Args
2014-01-05 11:31:30serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy, ned.deily, ezio.melotti, roger.serwy, asvetlov, python-dev, JBernardo, Rosuav, Ramchandra Apte, William.Schwartz
2014-01-05 11:31:30serhiy.storchakasetmessageid: <1388921490.42.0.398499551215.issue13153@psf.upfronthosting.co.za>
2014-01-05 11:31:30serhiy.storchakalinkissue13153 messages
2014-01-05 11:31:30serhiy.storchakacreate