Serhiy Storchaka added the comment:

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).

----------
Added file: http://bugs.python.org/file33318/tkinter_pythoncmd_args.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to