[issue14200] Idle shell crash on printing non-BMP unicode character

Roger Serwy report at bugs.python.org
Thu Mar 15 19:37:56 CET 2012


Roger Serwy <roger.serwy at gmail.com> added the comment:

The Tkinter Text widget is the output for the IDLE shell and it has the limitation imposed by Tcl/Tk of not handling non-BMP unicode characters. 

Is the following reasonable: The IDLE shell console has a locale of "non-BMP utf8"?

If so, would it be reasonable to add a menu item to switch locales for the shell? This amounts to adding some extra code to OutputWindow's write() to raise encoding errors if the string contains unsupported characters, and possibly replacing characters to work around Tcl/Tk's non-BMP limitation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14200>
_______________________________________


More information about the Python-bugs-list mailing list