[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space

Peter Harris report at bugs.python.org
Thu Feb 5 11:02:44 CET 2009


New submission from Peter Harris <scav at users.sourceforge.net>:

Using Python3.1 built from svn, on RedHat EL4, with Tcl/Tk 8.5 built
from source.

Traceback:
------------------
  File "/usr/mlocal/lib/python3.1/runpy.py", line 122, in
_run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/mlocal/lib/python3.1/runpy.py", line 34, in _run_code
    exec(code, run_globals)
  File "/usr/mlocal/lib/python3.1/idlelib/idle.py", line 22, in <module>
    idlelib.PyShell.main()
  File "/usr/mlocal/lib/python3.1/idlelib/PyShell.py", line 1407, in main
    root.mainloop()
  File "/usr/mlocal/lib/python3.1/tkinter/__init__.py", line 1009, in
mainloop
    self.tk.mainloop(n)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1:
illegal encoding
----------------
The list of completions appears just before the crash. I can't tell
whether the error occurs within tkinter or IDLE.

If I find out where to put the try/except I'll submit a patch.

----------
components: IDLE
messages: 81190
nosy: scav
severity: normal
status: open
title: IDLE exits with UnicodeDecodeError on Ctrl+Space
versions: Python 3.1

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


More information about the Python-bugs-list mailing list