[PATCH] UTF-8 surrounding text retrieval in Thai XIM

Theppitak Karoonboonyanan thep at linux.thai.net
Tue Jul 22 00:35:55 PDT 2008


This patch is proposed for Bug #12759 (Thai XIM fails to retrieve
multi-byte surrounding text on UTF-8 locale) [1]

  [1] http://bugs.freedesktop.org/show_bug.cgi?id=12759

It makes Thai XIM (provided in libx11) properly convert the string
returned from the string conversion callback before using it.
Currently, the code in libx11 only does the conversion for wide
char, and assumes that the multi-byte string is always in TIS-620
(8-bit character), which is not true on UTF-8 locales.

-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 022_Thai_xim_surr_conv.diff
Type: text/x-patch
Size: 1875 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20080722/c87c8451/attachment.bin>


More information about the xorg mailing list