LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 752|回复: 1

代人提交一 fcitx 3.1.1 的patch

[复制链接]
发表于 2005-5-4 10:35:20 | 显示全部楼层 |阅读模式
sinomac.net的站长jeff_yecn无法访问这里,他现在将fcitx 3.1.1移植到了Mac OS X(Darwin)上面: http://www.sinomac.net/downloads/fcitx-3.1.1-1.darwin.tar.gz
另外让我提交一个patch(但...提交到哪里??)
  1. diff -urN fcitx-3.1.1.orig/src/Makefile.am fcitx-3.1.1/src/Makefile.am
  2. --- fcitx-3.1.1.orig/src/Makefile.am    2004-07-16 02:40:17.000000000 -0400
  3. +++ fcitx-3.1.1/src/Makefile.am 2005-05-03 18:02:26.000000000 -0400
  4. @@ -1,4 +1,4 @@
  5. -DEFS = -DPKGDATADIR="$(pkgdatadir)"
  6. +DEFS = @DEFS@ -DPKGDATADIR="$(pkgdatadir)"

  7. INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/xpm
  8. diff -urN fcitx-3.1.1.orig/src/ui.c fcitx-3.1.1/src/ui.c
  9. --- fcitx-3.1.1.orig/src/ui.c   2005-03-09 00:14:49.000000000 -0500
  10. +++ fcitx-3.1.1/src/ui.c        2005-05-03 18:06:02.000000000 -0400
  11. @@ -362,7 +362,7 @@
  12.      l2 = 99;
  13.      ps = str1;

  14. -    l1 = iconv (convUTF8, &str, &l1, &ps, &l2);
  15. +    l1 = iconv (convUTF8, (ICONV_CONST char **)&str, &l1, &ps, &l2);
  16.      *ps = '\0';
  17.      XftTextExtentsUtf8 (dpy, font, (FcChar8 *) str1, strlen (str1), &extents);
  18.      if (font == xftMainWindowFont)
  19. @@ -387,7 +387,7 @@
  20.      ps2 = str2;
  21.      ps1 = str1;

  22. -    l1 = iconv (convUTF8, &ps1, &l1, &ps2, &l2);
  23. +    l1 = iconv (convUTF8, (ICONV_CONST char **)&ps1, &l1, &ps2, &l2);
  24.      *ps2 = '\0';

  25.      XftTextExtentsUtf8 (dpy, font, (FcChar8 *) str2, strlen (str2), &extents);
  26. @@ -440,7 +440,7 @@
  27.      l1 = strlen (str);
  28.      l2 = 99;
  29.      ps = strOutput;
  30. -    l1 = iconv (convUTF8, &str, &l1, &ps, &l2);
  31. +    l1 = iconv (convUTF8, (ICONV_CONST char **)&str, &l1, &ps, &l2);
  32.      *ps = '\0';

  33.      renderColor.red = color.red;
  34. diff -urN fcitx-3.1.1.orig/src/xim.c fcitx-3.1.1/src/xim.c
  35. --- fcitx-3.1.1.orig/src/xim.c  2005-03-21 09:43:59.000000000 -0500
  36. +++ fcitx-3.1.1/src/xim.c       2005-05-03 18:06:52.000000000 -0400
  37. @@ -333,7 +333,7 @@
  38.         ps = strOutput;
  39.         l1 = strlen (strHZ);
  40.         l2 = 299;
  41. -       l1 = iconv (convUTF8, (char **) (&strHZ), &l1, &ps, &l2);
  42. +       l1 = iconv (convUTF8, (ICONV_CONST char **) (&strHZ), &l1, &ps, &l2);
  43.         *ps = '\0';
  44.         ps = strOutput;
  45.      }
复制代码
发表于 2005-5-4 22:45:14 | 显示全部楼层
谢谢,我已经将它合并到现在的代码中
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表