[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1017726: libx11-6:amd64: inconsistency in some KeySym definitions and string lookup



Package: libx11-6
Version: 2:1.8.1-2
Severity: normal

While "infinity" and "approxeq" KeySym names work correctly,
e.g. xev outputs for them

    state 0x81, keycode 31 (keysym 0x8c2, infinity), same_screen YES,
    XLookupString gives 3 bytes: (e2 88 9e) "∞"
    XmbLookupString gives 3 bytes: (e2 88 9e) "∞"

and

    state 0x81, keycode 25 (keysym 0x1002248, approxeq), same_screen YES,
    XLookupString gives 3 bytes: (e2 89 88) "≈"
    XmbLookupString gives 3 bytes: (e2 89 88) "≈"

this is not the case of some other names, like "identical".

In /usr/include/X11/keysymdef.h, the name "identical" is associated
with the value 0x08cf, but xev outputs for this KeySym:

    state 0x80, keycode 25 (keysym 0x8cf, identical), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:

i.e. no lookup strings.

However, if in my XKB symbols config, I change "identical" to "U2261"
(i.e. the KeySym corresponding to the Unicode point), this works:

    state 0x80, keycode 25 (keysym 0x1002261, U2261), same_screen YES,
    XLookupString gives 3 bytes: (e2 89 a1) "≡"
    XmbLookupString gives 3 bytes: (e2 89 a1) "≡"

So either the lookup string "≡" should be added to KeySym 0x8cf
(similar to the "infinity" case) or the KeySym for "identical"
should be changed to 0x1002261 (similar to the "approxeq" case).

KeySym names "horizconnector" and "vertconnector" have the same issue.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libx11-6:amd64 depends on:
ii  libc6        2.34-4
ii  libx11-data  2:1.8.1-2
ii  libxcb1      1.15-1

libx11-6:amd64 recommends no packages.

libx11-6:amd64 suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: