iconv_open: Fix regression from 2010-12-04.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 23:19:57 +0000 (00:19 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 23:19:57 +0000 (00:19 +0100)
* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
Reported by Noah Lavine <noah.b.lavine@gmail.com>.

ChangeLog
m4/iconv_open.m4

index 3d35faa..866f595 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-12-19  Bruno Haible  <bruno@clisp.org>
 
+       iconv_open: Fix regression from 2010-12-04.
+       * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
+       Reported by Noah Lavine <noah.b.lavine@gmail.com>.
+
+2010-12-19  Bruno Haible  <bruno@clisp.org>
+
        stdbool test: Avoid a gcc warning.
        * tests/test-stdbool.c (main): Fail if e1 is false.
        Reported by Jim Meyering.
index da9b1fd..f0ec5da 100644 (file)
@@ -1,4 +1,4 @@
-# iconv_open.m4 serial 11
+# iconv_open.m4 serial 12
 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -203,7 +203,7 @@ int main ()
           result |= 8;
         else if (!(memcmp (buf, expected, sizeof (expected) - 1) == 0))
           result |= 8;
-        else if ((iconv_close (cd) == 0))
+        else if (!(iconv_close (cd) == 0))
           result |= 8;
       }
   }