On HP-UX 11.11 and 11.31, I'm seeing this iconv test failure:

  test-iconv.c:65: assertion failed
  FAIL: test-iconv

HP-UX iconv returns a positive value any time a non-ASCII character is
converted. This is an interpretation of the POSIX wording that disagrees
with what all other systems do. The bug is not fatal, but ought to be
documented:


2010-12-31  Bruno Haible  <[email protected]>

        iconv: Document HP-UX 11 bug.
        * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.

--- doc/posix-functions/iconv.texi.orig Fri Dec 31 22:56:06 2010
+++ doc/posix-functions/iconv.texi      Fri Dec 31 22:55:04 2010
@@ -34,4 +34,7 @@
 Gnulib provides higher-level facilities @code{striconv} and @code{striconveh}
 (wrappers around @code{iconv}) that deal with conversion errors in a platform
 independent way.
+...@item
+This function returns a positive return value, instead of zero, when
+converting from ISO-8859-1 to UTF-8 on HP-UX 11.
 @end itemize

Reply via email to