[Uim-bugs] [Bug 17076] New: Protocol error on XIM_GET_IM_VALUES_REPLY
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 11 06:05:55 PDT 2008
http://bugs.freedesktop.org/show_bug.cgi?id=17076
Summary: Protocol error on XIM_GET_IM_VALUES_REPLY
Product: UIM
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: bridge: XIM
AssignedTo: uim-bugs at freedesktop.org
ReportedBy: akira at tagoh.org
The protocol syntax of XIM_GET_IM_VALUES_REPLY is defined as:
2 CARD16 input-method-ID
2 n byte length of im-attributes returned
n LISTofXIMATTRIBUTE im-attributes returned
and XIMATTRIBUTE is:
2 CARD16 attribute ID
2 n value length
n value
XIMStyles is only available for IM attribute:
2 n number of XIMStyle list
2 unused
n CARD32 XIMStyle list
Following the above syntax, the packets for XIM_GET_IM_VALUES_REPLY should be:
/* beginning of header */
0x2d /* major-opcode */
0x00 /* minor-opcode */
0x0006 /* length */
/* end of header */
0xhhhh /* imid */
0x0014 /* byte length of im-attributes returned */
/* beginning of LISTofXIMATTRIBUTE */
0x0000 /* attribute id */
0x0010 /* value length */
/* beginning of value */
0x0003 /* number of XIMStyle list: from
input_style_input_style_tab_with_over_the_spot[] in ximim.cpp */
0x0000 /* unused */
0x00000408 /* XIMPreeditNothing | XIMStatusNothing */
0x00000404 /* XIMPreeditPosition | XIMStatusNothing */
0x00000402 /* XIMPreeditCallbacks | XIMStatusNothing */
/* end of value */
/* end of LISTofXIMATTRIBUTE */
However uim-xim sends out like:
/* beginning of header */
0x2d /* major-opcode */
0x00 /* minor-opcode */
0x0006 /* length */
/* end of header */
0xhhhh /* imid */
0x0010 /* byte length of im-attributes returned */
/* beginning of LISTofXIMATTRIBUTE */
0x0000 /* attribute id */
0x000c /* value length */
/* beginning of value */
0x0003 /* number of XIMStyle list: from
input_style_input_style_tab_with_over_the_spot[] in ximim.cpp */
0x0000 /* unused */
0x00000408 /* XIMPreeditNothing | XIMStatusNothing */
0x00000404 /* XIMPreeditPosition | XIMStatusNothing */
0x00000402 /* XIMPreeditCallbacks | XIMStatusNothing */
/* end of value */
/* end of LISTofXIMATTRIBUTE */
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the uim-bugs
mailing list