Re: Swedish keyboard not recognised

Peter Hunnisett <[email protected]> Wed, 26 Jan 2005 11:05:27 -0500
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
Göran Uddeborg wrote:

>Dmitry Timoshkov writes:
>  
>
>>Perhaps Peter needs to set Swedish locale (just prepend LC_ALL=sv_SE
>>to the command line) in order to replicate your setup.
>>    
>>
>
>Sorry for the late reply.
>
>I don't think locale is involved.  The code in
>X11DRV_KEYBOARD_DetectLayout() does a XKeycodeToKeysym() (via
>TSXKeycodeToKeysym()) for each keycode, and compares to a table.
>There is no locale dependency here I believe.  Or is it?
>  
>

The problem isn't the locale. It appears to depend on the version of X. 
I'll have to do a little bit of investigation on another setup to see 
what the fun stuff that's going on is. There is at least the problem 
where the code isn't willing to deal with 6 keysyms per keycode, but I'm 
not sure this is the problem.

>The table seems correct, but still the matching fails for some
>reason.
>  
>
If you feel like instrumenting the code a little more or walking through 
the code in gdb feel free ... that's what I'm going to be doing :)

*Ciao,
Peter
*