From 27857e3c09038053c88c4e27210cc229900b5567 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 4 Apr 2023 13:03:53 +0200 Subject: stdlib: Work around MB_CUR_MAX bug on Solaris 10. * lib/stdlib.in.h (gl_MB_CUR_MAX): New function. (MB_CUR_MAX, GNULIB_defined_MB_CUR_MAX): New macros. * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether MB_CUR_MAX is correct. (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MB_CUR_MAX. * modules/stdlib (Files): Add m4/locale-fr.m4. (Makefile.am): Substitute REPLACE_MB_CUR_MAX. * doc/posix-headers/stdlib.texi: Mention the Solaris 10 bug. --- doc/posix-headers/stdlib.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/posix-headers/stdlib.texi b/doc/posix-headers/stdlib.texi index 612e794068..ac7efbda84 100644 --- a/doc/posix-headers/stdlib.texi +++ b/doc/posix-headers/stdlib.texi @@ -14,6 +14,10 @@ some platforms. Some platforms provide a @code{NULL} macro that cannot be used in arbitrary expressions: NetBSD 5.0 +@item +The value of @code{MB_CUR_MAX} is too small (3 instead of 4) in UTF-8 locales +on some platforms: +Solaris 10. @end itemize Portability problems fixed by the Gnulib module @code{system-posix}: -- cgit v1.2.1