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

Vlastimil Brom report at bugs.python.org
Mon Mar 5 13:39:36 CET 2012

New submission from Vlastimil Brom <vlastimil.brom at gmail.com>:

while testing python 3.3a1 a bit, especially the new string handling of non-BMP characters, I noticed a problem in Idle in this regard:

Python 3.3.0a1 (default, Mar  4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 ... 
[using win XPp SP3 Czech]

>>> got_ahsa = "\N{GOTHIC LETTER AHSA}"
>>> len(got_ahsa)
>>> got_ahsa.encode("unicode-escape")
>>> got_ahsa

[crash - idle shell window closes immediately without any visible error message or traceback]

I realised later, that tkinter probably won't be able to print wide-unicode characters anyway (according to 
http://bugs.python.org/issue12342 ), but Idle should probably just print the exception introduced there, e.g.
ValueError: character U+10330 is above the range (U+0000-U+FFFF) allowed by Tcl


components: IDLE, Tkinter, Unicode
messages: 154944
nosy: ezio.melotti, vbr
priority: normal
severity: normal
status: open
title: Idle shell crash on printing non-BMP unicode character
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list