[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

Serhiy Storchaka report at bugs.python.org
Sun Jan 5 12:31:30 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue13153>
_______________________________________


More information about the Python-bugs-list mailing list