~vcs-imports/xorg-server/master

Viewing all changes in revision 6338.

  • Committer: Cyril Brulebois
  • Date: 2011-06-03 16:09:48 UTC
  • Revision ID: git-v1:408ed1576dbcf93f4bd27bd3b66917b1bba2226b
xkb: Fix case checks for Latin 8.

Spotted by -Wlogical-op:
|   CC     xkbfmisc.lo
| xkbfmisc.c: In function '_XkbKSCheckCase':
| xkbfmisc.c:104:3: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]
| xkbfmisc.c:118:3: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]

A quick look at the keysymdef.h file (from xproto) suggests the
implementor chose to use interval checks to determine the case, but
since lines weren't sorted by codepoints, checks were quite wrong.

Implement _XkbKSUpper/_XkbKSLower checks based on a grep for
CAPITAL/SMALL (respectively) on the Latin 8 part of the said file.

Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: