diff options
Diffstat (limited to 'chinese/fcitx/files/patch-src-ui.c')
-rw-r--r-- | chinese/fcitx/files/patch-src-ui.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/chinese/fcitx/files/patch-src-ui.c b/chinese/fcitx/files/patch-src-ui.c new file mode 100644 index 000000000000..247443582304 --- /dev/null +++ b/chinese/fcitx/files/patch-src-ui.c @@ -0,0 +1,29 @@ +--- src/ui.c.orig Wed Oct 27 23:19:07 2004 ++++ src/ui.c Wed Oct 27 23:20:59 2004 +@@ -339,7 +339,7 @@ + l2 = 99; + ps = str1; + +- l1 = iconv (convUTF8, &str, &l1, &ps, &l2); ++ l1 = iconv (convUTF8, (const char**) &str, &l1, &ps, &l2); + *ps = '\0'; + XftTextExtentsUtf8 (dpy, font, (FcChar8*)str1, strlen (str1), &extents); + if ( font!=xftFont) +@@ -364,7 +364,7 @@ + ps2 = str2; + ps1 = str1; + +- l1 = iconv (convUTF8, &ps1, &l1, &ps2, &l2); ++ l1 = iconv (convUTF8, (const char**)&ps1, &l1, &ps2, &l2); + *ps2='\0'; + + XftTextExtentsUtf8 (dpy, font, (FcChar8 *)str2, strlen (str2), &extents); +@@ -418,7 +418,7 @@ + l2 = 99; + ps = strOutput; + +- l1 = iconv (convUTF8, (char **) (&str), &l1, &ps, &l2); ++ l1 = iconv (convUTF8, (const char **) (&str), &l1, &ps, &l2); + *ps='\0'; + + renderColor.red = color.red; |