Terry J. Reedy <tjre...@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 <rep...@bugs.python.org>
<https://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