Comment #6 on issue 1099 by takao.fujiwara1: ibus-anthy does not implement XmbResetIC, XwcResetIC or Xutf8ResetIC
http://code.google.com/p/ibus/issues/detail?id=1099

Patch:
http://github.com/fujiwarat/ibus/commit/ac9c95f8318dcd488005aa10cbe468e6d02d511a

My evaluation is here:
When user's application calls XmbResetIC() or Xutf8ResetIC(), the returned value is always NULL because ibus-x11 calls ibus/client/x11/main.c:xim_reset_ic() but it doesn't assign any strings.

     FrameMgrPutToken(fm, resetic->length);
-    FrameMgrPutToken (fm, resetic->commit_string);
+    _FrameMgrPutToken (fm, resetic->commit_string, resetic->length);

Probably it would be a bug in IMdkit.
The compound string, resetic->commit_string, is not array so the sizeof() in the FrameMgrPutToken() macro doesn't get the right size here. Since the serialized FrameMgr has already committed resetic->length, I think resetic->commit_string also needs to be committed with the length of resetic->length.

--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复