* lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
characters on all platforms.
+2020-12-07 Bruno Haible <bruno@clisp.org>
+
+ unicodeio: Fix wrong result on FreeBSD.
+ * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
+ characters on all platforms.
+
2020-12-07 Bruno Haible <bruno@clisp.org>
get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
# if !defined _LIBICONV_VERSION && (defined sgi || defined __sgi)
|| (res > 0 && code != 0 && outptr - outbuf == 1 && *outbuf == '\0')
# endif
- /* NetBSD iconv() and Solaris 11 iconv() insert a '?' if they cannot
- convert. */
-# if !defined _LIBICONV_VERSION && (defined __NetBSD__ || defined __sun)
+ /* FreeBSD iconv(), NetBSD iconv(), and Solaris 11 iconv() insert
+ a '?' if they cannot convert. */
+# if !defined _LIBICONV_VERSION
|| (res > 0 && outptr - outbuf == 1 && *outbuf == '?')
# endif
/* musl libc iconv() inserts a '*' if it cannot convert. */