[xorg-bugzilla-noise] [Bug 658] New: XStringToKeysym fails for Greek_IOTAdiaeresis

bugzilla-daemon at pdx.freedesktop.org bugzilla-daemon at pdx.freedesktop.org
Fri May 21 20:25:34 PDT 2004


http://pdx.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=658

           Summary: XStringToKeysym fails for Greek_IOTAdiaeresis
           Product: xorg
           Version: 6.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Lib/Xlib
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: alan.coopersmith at sun.com


XStringToKeysym("Greek_IOTAdiaeresis") returns NoSymbol in X11R6.7.0, instead of
the correct value of 0x7a5 as returned in prior versions.   This causes VSW5
test case XStringToKeysym-7 to fail.

The problem is caused by changing the definition in xc/include/keysymdef.h from
#define XK_Greek_IOTAdiaeresis                         0x7a5
to:
#define XK_Greek_IOTAdieresis                          0x7a5
#define XK_Greek_IOTAdiaeresis         XK_Greek_IOTAdieresis /* old typo */

Unforunately, the code that builds the database used by XStringToKeysym()
(xc/lib/X11/util/makekeys.c) can't handle symbols defined as aliases to other
symbols instead of given a value directly.  This affects these 4 symbol 
definitions in the X11R6.7.0 version of keysymdef.h:
#define XK_Oslash              XK_Ooblique
#define XK_ooblique            XK_oslash
#define XK_Arabic_farsi_yeh                     XK_Farsi_yeh
#define XK_Greek_IOTAdiaeresis         XK_Greek_IOTAdieresis /* old typo */

Fixing that code to correctly parse these entries makes XStringToKeysym()
return the correct values for these keysyms.

[This was discovered by Sun QA and is tracked in Sun's bug database as 
 bug id 5037725.]



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the xorg-bugzilla-noise mailing list