iconv_open: Fix regression from 2010-12-04.
authorIan Beckwith <ianb@erislabs.net>
Wed, 22 Dec 2010 23:03:13 +0000 (23:03 +0000)
committerIan Beckwith <ianb@erislabs.net>
Wed, 22 Dec 2010 23:03:13 +0000 (23:03 +0000)
* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
Reported by Noah Lavine <noah.b.lavine@gmail.com>.
(cherry picked from commit d534aa814510c8cd4ac70ffee3e0abd58daba356)

ChangeLog
m4/iconv_open.m4

index 3243340..43be12c 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>
+
        Document some different function declarations on OSF/1 5.1.
        * doc/posix-functions/gai_strerror.texi: Mention different declaration.
        * doc/posix-functions/inet_ntop.texi: Likewise.
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;
       }
   }