[Vm-dev] Unix UTF8 input

Chris Petsos chrispetsos at sch.gr
Mon Jun 25 10:14:50 UTC 2007

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...


> 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

is identical to running...

/home/Bob/Desktop/Squeak-3.9-9/build/squeak -edsfrsdf UTF-8

> 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.

> > 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...


More information about the Vm-dev mailing list