Handling keyboard input on unix when locale set to utf-8

José Luis Redrejo jredrejo at gmail.com
Thu Jan 17 10:33:54 UTC 2008


Hi Alexander, I've applied your patch and it doesn't work. Now the image
doesn't raise the error it did in the past (vm returned code -31 instead of
135 for 'á' when not using UTF or just ignored dead-keys when using it),
but  I only see strange characters in the image when trying to type á,é,
etc.
I've applied it to current svn branches of olpc or trunk , maybe you're
using another revision/version. In that case, please, tell it which one you
used.

This is the output of my locales:

LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=es_ES.UTF-8

Best Regards.
José L.


2008/1/17, Alexander Serkov <alexander.serkov at gmail.com>:
>
> Hi folks!
>
> I am quite new to squeak and smalltalk community,
> so my solution is just of "It works for me" sort.
>
> Attached patch fixes utf-8 keyboard input,
> while clipboard copy paste is still broken.
>
> On 17/01/2008, danil osipchuk <danil.osipchuk at gmail.com> wrote:
> > Heh, the silence (I hope I don't look too inpatient - this topic is
> > recurring for years now). Janko, let's face the fact that we are losers
> with
> > a wrong vm-platform/language combinations :)
> > I suspect that OLPC team somehow addressed the issue (it is linux based,
> > most probably utf-8 locale there). I also see UnixUTF8JPInputInterpreter
> > class in the image - so japanese people also have a solution.
> >
> > I'm sure that we can do it also, at least by adopting the solution of
> Martin
> > Kuball mentioned before (although I would prefer the approach taken in
> > recent Mac and windows VMs - to add a unicode point code as the sixth
> field
> > of event buffer).
> >
> > But I have another concern now. What will happen to the patch? Will it
> find
> > its way to the core VM? Is the unix VM being maintained?
> >
> > cheers,
> >    Danil
> >
> > 2008/1/16, Janko Mivšek < janko.mivsek at eranova.si>:
> > > I second Danil question. Is there anyone willing to dig into a that
> > > problem? I am willing to help as much as I can, but I don't know VM
> nor
> > > Linux internals much. I jumped over C directly to Smalltalk, you know
> ...
> > :)
> > >
> > > Janko
> > >
> > > danil osipchuk wrote:
> > > > Hello, all.
> > > >
> > > > Many modern linux distros now use utf-8 locale as a default setting.
> > > > Also stock unix VM never seemed to handle unicode keyboard input
> under
> > > > this locale. Are there any plans to do it properly or linux users
> are
> > > > supposed to fix the VM themselves (by beating heads against of this
> > > > thread for example:
> > > > http://www.nabble.com/Unix-UTF8-input-td11050488.html
> > )? May be anyone
> > > > has got a 'proper' VM already - it is hard to believe that such
> drawback
> > > > is not fixed long time ago.
> > > >
> > > > cheers,
> > > >   Danil
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > >
> > >
> > > --
> > > Janko Mivšek
> > > AIDA/Web
> > > Smalltalk Web Application Server
> > > http://www.aidaweb.si
> > >
> > >
> >
> >
> >
> >
> >
>
>
> --
> Best regards Alexander Serkov
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080117/f591eb54/attachment.htm


More information about the Squeak-dev mailing list