[issue42225] Tkinter hangs or crashes when displaying astral chars

STINNER Victor report at bugs.python.org
Mon Nov 2 06:47:46 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> Fixing OS graphics or tk is out of scope for us.  Preventing hangs or crashes when using tkinter is.  On Mac, refusing to insert any astral char into a tk widget might be the best solution.  Serhiy, could that be done in tkinter/_tkinter?

I dislike attempting to workaround Tk issues in Python. As you can see, the behavior really depends on the platform. As I wrote, on Fedora 32 it works (the character is rendered properly). I would prefer to not block such character on Fedora 32 because it does crash on some other platforms.

Or you should detect the very precise conditions explaining why it works on some platforms and crash on some other platforms...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42225>
_______________________________________


More information about the Python-bugs-list mailing list