[issue13153] IDLE 3.x on Windows exits when pasting non-BMP unicode
Terry J. Reedy
report at bugs.python.org
Fri Jul 19 04:52:13 EDT 2019
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Closed #37614 in favor of this.
We now have only Python with FSR and mostly only tcl 8.6 to worry about. But I presume the Windows clipboard still uses uft-16le. Experimenting with pasting 𐒢 or '𐒢', I usually get the 'ed' message as before, but with the quoted astral, IDLE somethings hangs. If I wait before trying to close, I get a message from Windows about waiting or closing.
Currently, an attempt to print an astral char, as opposed to paste, results in
>>> print('\U00011111')
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
print('\U00011111')
UnicodeEncodeError: 'UCS-2' codec can't encode character '\U00011111' in position 0: Non-BMP character not supported in Tk
Improving this is a separate issue, as is editing a .py file with an astral char in the name or test.
----------
title: IDLE 3.x on Windows crashes when pasting non-BMP unicode -> IDLE 3.x on Windows exits when pasting non-BMP unicode
versions: +Python 3.9 -Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13153>
_______________________________________
More information about the Python-bugs-list
mailing list