This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients erlendaasland, shreyanavigyan, steven.daprano, taleinat, terry.reedy
Date 2021-05-24.01:31:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621819890.47.0.924662702584.issue44217@roundup.psfhosted.org>
In-reply-to
Content
This is fundamentally a tk text widget issue.  Prior to fall 2019, attempts to insert an astral (non-BMP) chars in tkinter widgets raised a unicode decode exception.  Then Serhiy fixed tkinter so that such chars could be displayed, either as the actual chars or as a replacement box for unavailable chars.  There were 2 remaining problems:

1. The presence of the literal astral char in an editable widget, especially a Text widget, make editing past the char weird.  It can be demonstrated with, for instance, the following.

import tkinter as tk
r = tk.Tk()
t.insert = tk.Text(r); t.pack()
t.insert('insert', "a😀b'a😀b'a😀b)\n"

We decided that beings able to output such chars to the view-only part of shell more than made up for confusion such as Shreyan experienced.

Re-experimenting now, it appears that the behavior is worse in IDLE.  In particular, backspace delete does not work (nothing happens).  IDLE intercepts <backspace> in order to invoke its smart backspace routine.  I will try to find out why nothing happens.  Whatever the result, the behavior should be better documented.

The 8.7a3 was released Nov 2019, so I have no idea how soon 8.7 will arrive.  Maybe the devs found enough bugs to work on, especially on Mac.  And then 8.6.11 was needed to have tcl/tk work on the new Apple hardware and OS version.

2. On some Linux systems with some fonts with some XWindows, attempts to display some colored chars (such as particular emoji), in color, causes an XWindows error ('too complex').  This is a Linux-Xwindows-font bug.
History
Date User Action Args
2021-05-24 01:31:30terry.reedysetrecipients: + terry.reedy, taleinat, steven.daprano, erlendaasland, shreyanavigyan
2021-05-24 01:31:30terry.reedysetmessageid: <1621819890.47.0.924662702584.issue44217@roundup.psfhosted.org>
2021-05-24 01:31:30terry.reedylinkissue44217 messages
2021-05-24 01:31:30terry.reedycreate