+2026-06-02 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc: Work around a NetBSD bug in UTF-8 locales, part 2.
+ * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Also set REPLACE_MBSRTOWCS
+ to 1 if gl_MBRTOWC_INVALID_UTF8 reports "no".
+ * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Also set REPLACE_MBSNRTOWCS
+ to 1 if gl_MBRTOWC_INVALID_UTF8 reports "no".
+
2026-06-02 Bruno Haible <bruno@clisp.org>
c32width etc.: Fix compilation error on GNU systems (regr. 2026-04-24).
# mbsnrtowcs.m4
-# serial 11
+# serial 12
dnl Copyright (C) 2008, 2010-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*) REPLACE_MBSNRTOWCS=1 ;;
esac
fi
+ if test $REPLACE_MBSNRTOWCS = 0; then
+ gl_MBRTOWC_INVALID_UTF8
+ case "$gl_cv_func_mbrtowc_invalid_UTF8" in
+ *yes) ;;
+ *) REPLACE_MBSNRTOWCS=1 ;;
+ esac
+ fi
fi
fi
])
# mbsrtowcs.m4
-# serial 19
+# serial 20
dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*) REPLACE_MBSRTOWCS=1 ;;
esac
fi
+ if test $REPLACE_MBSRTOWCS = 0; then
+ gl_MBRTOWC_INVALID_UTF8
+ case "$gl_cv_func_mbrtowc_invalid_UTF8" in
+ *yes) ;;
+ *) REPLACE_MBSRTOWCS=1 ;;
+ esac
+ fi
fi
fi
])