Message154944
Hi,
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)
1
>>> got_ahsa.encode("unicode-escape")
b'\\U00010330'
>>> 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
Regards
vbr |
|
| Date |
User |
Action |
Args |
| 2012-03-05 12:39:36 | vbr | set | recipients:
+ vbr, ezio.melotti |
| 2012-03-05 12:39:36 | vbr | set | messageid: <1330951176.7.0.566345829726.issue14200@psf.upfronthosting.co.za> |
| 2012-03-05 12:39:35 | vbr | link | issue14200 messages |
| 2012-03-05 12:39:35 | vbr | create | |
|