summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-19 01:01:56 +0200
committerBruno Haible <bruno@clisp.org>2023-04-19 01:07:24 +0200
commit6c28538c9d6bbf692ab12972de6cc035e54b0c67 (patch)
tree192b7cf854082a8ebc66f8bb81d88bc6acc1fb5f /doc
parent5c9f32c99a0ad5bb6977c4d416fd6835eeb4fad5 (diff)
downloadgnulib-6c28538c9d6bbf692ab12972de6cc035e54b0c67.tar.gz
wmemcmp: Work around ISO C compliance bug on several platforms.
* lib/wchar.in.h (wmemcmp): Consider REPLACE_WMEMCMP. * lib/wmemcmp-impl.h (wmemcmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Test whether wmemcmp works for all wide characters. Set REPLACE_WMEMCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WMEMCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WMEMCMP. * modules/wmemcmp (configure.ac): Consider REPLACE_WMEMCMP. * doc/posix-functions/wmemcmp.texi: Mention the bug.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/wmemcmp.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-functions/wmemcmp.texi b/doc/posix-functions/wmemcmp.texi
index 8d3262c5cb..cebacfb664 100644
--- a/doc/posix-functions/wmemcmp.texi
+++ b/doc/posix-functions/wmemcmp.texi
@@ -11,6 +11,10 @@ Portability problems fixed by Gnulib:
@item
This function is missing on some platforms:
HP-UX 11.00, IRIX 6.5, MSVC 14.
+@item
+This function compares the wide characters as if they were unsigned, although
+@code{wchar_t} is signed, on some platforms:
+glibc 2.14.1 on x86 or x86_64, musl libc 1.2.3, NetBSD 9.0, OpenBSD 7.2, Solaris 11.4.
@end itemize
Portability problems not fixed by Gnulib: