Am Monday 25 June 2007 schrieb Chris Petsos:
On Sun, 2007-06-24 at 19:53 +0200, Martin Kuball wrote:
Yes, that is part of it. Could you send me the output of the locale command?
I undid some things so...here you go...
LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
What exactly happens if you start the VM with -eventenc. Is there any error message or does it simply quit?
I don't get any error messages, but the VM resopnds as if the -eventenc parameter does not exist. Meaning that running...
/home/Bob/Desktop/Squeak-3.9-9/build/squeak -eventenc UTF-8 ~/.npsqueak/SqueakPlugin.image
is identical to running...
/home/Bob/Desktop/Squeak-3.9-9/build/squeak -edsfrsdf UTF-8 ~/.npsqueak/SqueakPlugin.image
Now that I'm thinking about this stuff again I believe that I should not have added the eventenc parameter at all. The encoding of the keyevents delivered by the X server is determined by the locale setting. We too should use the locale setting to figure out how to map from the encoding of the X server to the squeak internal encoding. No user intervention is required here. It could only do harm.
I would agree... Another idea floating in the air is to use the xutf8* set of functions...from what i know this set is going to be integrated into the OLPC distribution too, so it may become handy...but...one step at a time.
Do you know where I can get more information about these xutf8* functions?
I 've put some keyboard event buffer printing in my input interpreter so that i can see if keyboard events are generated and with what values... When i change the keyboard to my locale, no printing to the Transcript...no events generated at all... Why is that?
So you were able to start the VM but you could not enter any characters?
Yes, i could start the VM without the -eventenc parameter but i could not enter any non-english chars...
That means the patch did actually not change anything for you, right? Are you really sure you'r using the right vm? The one you compiled? Sorry I have to ask but this is strange.
Martin