On 9/14/2013 4:09 PM, Bruce Sherwood wrote:
I removed C:\Users\Bruce\.idlerc and started over. I find that the
problem has to do with .idlerc\recent-files.lst.
If recent-files.lst contains the following, no problem:
C:\Users\Bruce\Desktop\test.py
But suppose recent-files.lst contains the following:
C:\Users\Bruce\Desktop\test.py
H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py
By my experiments, the problem is the leading 0 in the path component.
http://bugs.python.org/issue19020
In that case I get the crash shown below when I try to open test.py or
for that matter any file. The crash occurs as soon as I select the file.
Because utf-8 is specifically mentioned in the crash, I repeated the
test by typing the file name into recent-files.lst using Notepad++
rather than copying it from an old VIDLE recent-files.lst. Still crashes.
All of my tests are consistent with the statement that if
recent-files.lst contains an existing file name starting with H:\, the
crash happens.
I bet those all continued with \HP_Documents\0Python...
> If instead the file doesn't exist (e.g. H:\glop.py) IDLE
works okay and deletes the nonexistent file name from recent-files.lst.
C:\Users\Bruce>C:\Python34\python -m idlelib
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1475, in __call__
return self.func(*args)
File "C:\Python34\lib\idlelib\IOBinding.py", line 179, in open
flist.open(filename, self.loadfile)
File "C:\Python34\lib\idlelib\FileList.py", line 34, in open
return action(filename)
File "C:\Python34\lib\idlelib\IOBinding.py", line 240, in loadfile
self.updaterecentfileslist(filename)
File "C:\Python34\lib\idlelib\IOBinding.py", line 521, in
updaterecentfileslist
self.editwin.update_recent_files_list(filename)
File "C:\Python34\lib\idlelib\EditorWindow.py", line 915, in
update_recent_files_list
menu.delete(0, END) # clear, and rebuild:
File "C:\Python34\lib\tkinter\__init__.py", line 2739, in delete
if 'command' in self.entryconfig(i):
File "C:\Python34\lib\tkinter\__init__.py", line 2749, in entryconfigure
return self._configure(('entryconfigure', index), cnf, kw)
File "C:\Python34\lib\tkinter\__init__.py", line 1247, in _configure
self.tk.call(_flatten((self._w, cmd)))):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14:
invalid start byte
--
Terry Jan Reedy
_______________________________________________
IDLE-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/idle-dev