+2006-06-17 Bruno Haible <bruno@clisp.org>
+
+ * iconvstring.c (iconv_string): Recognize conversion failures also
+ from NetBSD's iconv().
+
2006-06-17 Bruno Haible <bruno@clisp.org>
* config.charset: Update for NetBSD 3.0.
else
return -1;
}
-# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi)
- /* Irix iconv() inserts a NUL byte if it cannot convert. */
+# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi || defined __NetBSD__)
+ /* Irix iconv() inserts a NUL byte if it cannot convert.
+ NetBSD iconv() inserts a '?' byte if it cannot convert. */
else if (res > 0)
return -1;
# endif
else
return -1;
}
-# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi)
- /* Irix iconv() inserts a NUL byte if it cannot convert. */
+# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi || defined __NetBSD__)
+ /* Irix iconv() inserts a NUL byte if it cannot convert.
+ NetBSD iconv() inserts a '?' byte if it cannot convert. */
else if (res > 0)
return -1;
# endif