gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6738 - in doodle: . src/doodle


From: gnunet
Subject: [GNUnet-SVN] r6738 - in doodle: . src/doodle
Date: Sun, 20 Apr 2008 20:53:25 -0600 (MDT)

Author: grothoff
Date: 2008-04-20 20:53:24 -0600 (Sun, 20 Apr 2008)
New Revision: 6738

Modified:
   doodle/ChangeLog
   doodle/src/doodle/convert.c
Log:
iconv

Modified: doodle/ChangeLog
===================================================================
--- doodle/ChangeLog    2008-04-20 23:40:15 UTC (rev 6737)
+++ doodle/ChangeLog    2008-04-21 02:53:24 UTC (rev 6738)
@@ -1,3 +1,9 @@
+Sun Apr 20 20:52:16 MDT 2008
+       Fixed a problem in the code handling iconv (character
+       set translation) errors; if iconv was not working, the
+       input string should just be returned without conversion
+       (thanks to Alan Post for pointing this out).
+
 Wed Dec 19 11:06:08 MST 2007
        Updated Vietnamese translation.
 

Modified: doodle/src/doodle/convert.c
===================================================================
--- doodle/src/doodle/convert.c 2008-04-20 23:40:15 UTC (rev 6737)
+++ doodle/src/doodle/convert.c 2008-04-21 02:53:24 UTC (rev 6738)
@@ -44,7 +44,7 @@
 
   cd = iconv_open("UTF-8", charset);
   if (cd == (iconv_t) -1)
-    return strdup(charset);
+    return strdup(input);
   tmpSize = 3 * len + 4;
   tmp = malloc(tmpSize);
   itmp = tmp;
@@ -56,7 +56,7 @@
            &finSize) == (size_t)-1) {
     iconv_close(cd);
     free(tmp);
-    return strdup(charset);
+    return strdup(input);
   }
   ret = malloc(tmpSize - finSize + 1);
   memcpy(ret,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]