]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
unicodeio: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:18:37 +0000 (23:18 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:18:37 +0000 (23:18 +0200)
* lib/unicodeio.c (unicode_to_mb): Remove code for IRIX.

ChangeLog
lib/unicodeio.c

index 72765b1abd5adeb79110547483b671df0b5bd8c2..be83bbc813b9b87c93146d4f2c11b67c9d004c90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       unicodeio: Remove support for IRIX.
+       * lib/unicodeio.c (unicode_to_mb): Remove code for IRIX.
+
        threads-h: Remove support for IRIX.
        * lib/threads.in.h (TSS_DTOR_ITERATIONS): Assume that
        PTHREAD_DESTRUCTOR_ITERATIONS is defined.
index 5d3d27f48de3edcce6eea18f93d0a9485df1fb44..6305cbbc420a9d33d6749c557eb5b9c31b3ccaa0 100644 (file)
@@ -135,13 +135,8 @@ unicode_to_mb (unsigned int code,
            - replacing FULLWIDTH COLON with ':', or
            - replacing a Unicode TAG character (U+E00xx) with an empty string,
          from replacements that are worse than the FAILURE callback, such as
-           - replacing 'ç' with '?' (NetBSD, Solaris 11) or '*' (musl) or
-             NUL (IRIX).  */
+           - replacing 'ç' with '?' (NetBSD, Solaris 11) or '*' (musl).  */
       if (inbytesleft > 0 || res == (size_t)(-1)
-          /* Irix iconv() inserts a NUL byte if it cannot convert.  */
-# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi)
-          || (res > 0 && code != 0 && outptr - outbuf == 1 && *outbuf == '\0')
-# endif
           /* FreeBSD iconv(), NetBSD iconv(), and Solaris 11 iconv() insert
              a '?' if they cannot convert.  */
 # if !defined _LIBICONV_VERSION || (_LIBICONV_VERSION == 0x10b && defined __APPLE__)