keysym: fix xkb_keysym_is_upper/lower() to work properly
authorRan Benita <ran234@gmail.com>
Tue, 9 Oct 2012 18:48:35 +0000 (20:48 +0200)
committerRan Benita <ran234@gmail.com>
Tue, 9 Oct 2012 19:39:16 +0000 (21:39 +0200)
commit9179fed76bd46eb1edcb3edd0c9c515f5a7e2b31
treee0d8307a7cf37cafd1404e6f898936b47658c740
parent2ac319c54ab2072709916cced2e0eb8c8d37f859
keysym: fix xkb_keysym_is_upper/lower() to work properly

Our current code (taken from the xserver) doesn't handle unicode keysyms
at all, and there seem to be some other changes compared to libX11,
which is what xkbcomp uses. So we just copy the code that does that from
libX11.
It would be much better to not have to hardcode unicode tables like
that, but it's probably better than dealing with glibc locale stuff for
now. It also doesn't affect our binary size much.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keysym.c
test/keysym.c