[Vm-dev] Unix UTF8 input
Chris Petsos
chrispetsos at sch.gr
Tue Jun 19 11:28:25 UTC 2007
Hi Martin...thanks for posting...
> Here you go. The patch changes the input event handling method to
> process
> multibyte characters. Basically there are two changes. First: in the
> event
> handler the individual bytes are accumulated and than the recode
> method is
> called. Second: if you use an utf8 locale the utf8 input encoding is
> set
> to UTF8 (see sqUnixCharConv.c).
> If you want to use a different encoding you can overide the automatic
> choice by using -eventenc parameter. For available encodings see
> sqUnixCharConv.c.
>
> The patch has to be applied to
> platforms/unix/vm-display-X11/sqUnixX11.c.
>
> If you find any bugs or have questions or suggestions for improvement
> please tell me.
>
I applied your patch successfully but it seems that the VM does not
respond correctly to -eventenc setting, although it is listed in the
help notes... It reacts as if the parameter does not exist...
A previous solution i applied was setting the parameter correctly, so
i'll try to mix them up to see how it goes...
Christos.
More information about the Vm-dev
mailing list