diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-04 13:03:53 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-04 13:10:39 +0200 |
commit | 27857e3c09038053c88c4e27210cc229900b5567 (patch) | |
tree | 4c3aeaa32ed67c863a85f0fe61f78c4c06cca59e /doc | |
parent | a6a9a45e6feb8519bcdcc69b68f22671e4eb5e86 (diff) | |
download | gnulib-27857e3c09038053c88c4e27210cc229900b5567.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-headers/stdlib.texi | 4 |
1 files changed, 4 insertions, 0 deletions
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}: |