[uim-commit] r667 - trunk/uim

makeinu at freedesktop.org makeinu at freedesktop.org
Wed Feb 16 23:26:43 PST 2005


Author: makeinu
Date: 2005-02-16 23:26:41 -0800 (Wed, 16 Feb 2005)
New Revision: 667

Modified:
   trunk/uim/uim-func.c
Log:
* uim/uim-func.c
  - (uim_iconv_create): Don't create iconv context when the tocode and
    the fromcode are same encoding.
    Please see [Anthy-dev 1854] for more detail.


Modified: trunk/uim/uim-func.c
===================================================================
--- trunk/uim/uim-func.c	2005-02-16 14:31:28 UTC (rev 666)
+++ trunk/uim/uim-func.c	2005-02-17 07:26:41 UTC (rev 667)
@@ -245,6 +245,9 @@
 {
   iconv_t ic;
 
+  if (!strcmp(tocode, fromcode))
+    return (void *) 0;
+
   ic = iconv_open(tocode, fromcode);
   if (ic == (iconv_t)-1) {
     ic = (iconv_t)0;



More information about the Uim-commit mailing list