[Idle-dev] Non 7bit ascii characters in IDLE

mpe501@chello.se mpe501@chello.se
Sat, 1 Feb 2003 20:56:12 +0100


If i do something like:
a = "ä"
IDLE will barf and say something along the lines of "Unicode Error: Ordinal error". If i use idlefork i get a bunch of errors the moment i type a non 7bit ascii character:
Exception in Tkinter callback
Traceback (most recent call last):
  File "E:\Program\Python22\lib\lib-tk\Tkinter.py", line 1300, in __call__
    return apply(self.func, args)
  File "E:\Program\Python22\lib\lib-tk\Tkinter.py", line 436, in callit
    apply(func, args)
  File "E:\PROGRAM\PYTHON22\Tools\idle\ColorDelegator.py", line 144, in recolorize
    self.recolorize_main()
  File "E:\PROGRAM\PYTHON22\Tools\idle\PyShell.py", line 121, in recolorize_main
    ColorDelegator.recolorize_main(self)
  File "E:\PROGRAM\PYTHON22\Tools\idle\ColorDelegator.py", line 196, in recolorize_main
    if value in ("def", "class"):
UnicodeError: UTF-16 decoding error: truncated data


This may be because of my configuration but the people at #python haven't been able to help me so maybe it's a bug....

Please CC any replies to me since i'm not subscribed to the list.

/David