Message215038
When open a file with characters above the range (U+0000-U+FFFF), IDLE quit without any report. For example, open this file \Lib\test\test_re.py
The below is Traceback info, the last line tells the reason. I just hope IDLE say something before quit, so we can know what happend.
I have checked Python 3.3.5 and 3.4.0, they have the same problem. I didn't find a 3.5 build, so I can't test this problem under 3.5.
=============================================
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python33\lib\tkinter\__init__.py", line 1489, in __call__
return self.func(*args)
File "C:\Python33\lib\idlelib\IOBinding.py", line 186, in open
flist.open(filename)
File "C:\Python33\lib\idlelib\FileList.py", line 36, in open
edit = self.EditorWindow(self, filename, key)
File "C:\Python33\lib\idlelib\PyShell.py", line 126, in __init__
EditorWindow.__init__(self, *args)
File "C:\Python33\lib\idlelib\EditorWindow.py", line 288, in __init__
if io.loadfile(filename):
File "C:\Python33\lib\idlelib\IOBinding.py", line 236, in loadfile
self.text.insert("1.0", chars)
File "C:\Python33\lib\idlelib\Percolator.py", line 25, in insert
self.top.insert(index, chars, tags)
File "C:\Python33\lib\idlelib\UndoDelegator.py", line 81, in insert
self.addcmd(InsertCommand(index, chars, tags))
File "C:\Python33\lib\idlelib\UndoDelegator.py", line 116, in addcmd
cmd.do(self.delegate)
File "C:\Python33\lib\idlelib\UndoDelegator.py", line 219, in do
text.insert(self.index1, self.chars, self.tags)
File "C:\Python33\lib\idlelib\ColorDelegator.py", line 85, in insert
self.delegate.insert(index, chars, tags)
File "C:\Python33\lib\idlelib\WidgetRedirector.py", line 104, in __call__
return self.tk_call(self.orig_and_operation + args)
_tkinter.TclError: character U+1d518 is above the range (U+0000-U+FFFF) allowed by Tcl |
|
Date |
User |
Action |
Args |
2014-03-28 12:01:05 | malin | set | recipients:
+ malin |
2014-03-28 12:01:05 | malin | set | messageid: <1396008065.84.0.00802001667749.issue21084@psf.upfronthosting.co.za> |
2014-03-28 12:01:05 | malin | link | issue21084 messages |
2014-03-28 12:01:04 | malin | create | |
|