[Idle-dev] German Umlaut and raw_input!
Gregor Lingl
glingl@aon.at
Tue, 20 Aug 2002 01:04:38 +0200
Hi, idle-dev people!
Some month ago I copied sitecustomize.py with
appropriate locale-setting to C:\Python22\Lib
thanks to an advice of someone on this list.
This worked well until today I made the observation,
that raw_input doesn't work correctly:
>>> a = raw_input("Hä? ")
Hä? Tschüs
Traceback (most recent call last):
File "<pyshell#2>", line 1, in ?
a = raw_input("Hä? ")
TypeError: object.readline() returned non-string
>>>
Consequently I cannot execute programs with
raw_input from IDLE, if the expected answers may
contain "Umlaute". Those same programs,
however, can be executed from the commandline.
And also the interactive Python interpreter can execute
raw_input statements even when Umlaute are input.
So I think, this must be a problem of IDLE.
I must confess, I do not understand the error message.
Hope this can be corrected somehow.
Thanks
Gregor Lingl