summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-19 02:14:09 +0200
committerBruno Haible <bruno@clisp.org>2023-04-19 02:39:36 +0200
commit4b440d3568b01dd9acd5242bea8b63fc43428f5a (patch)
tree58e1ba3d97e79f2e21b73badab54a3b5b6d277d5 /ChangeLog
parent7634eee7a8da4a2f5eb9522ec01d24b8ad105df7 (diff)
downloadgnulib-4b440d3568b01dd9acd5242bea8b63fc43428f5a.tar.gz
wcscmp: Work around two ISO C compliance bugs on several platforms.
* lib/wchar.in.h (wcscmp): Consider REPLACE_WCSCMP. * lib/wcscmp-impl.h (wcscmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Test whether wcscmp works for all wide characters. Set REPLACE_WCSCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WCSCMP. * modules/wcscmp (Status, Notice): Un-obsolete this module. (configure.ac): Consider REPLACE_WCSCMP. * doc/posix-functions/wcscmp.texi: Mention the two bugs.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 17596c4b23..bc02f2d5f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
2023-04-18 Bruno Haible <bruno@clisp.org>
+ wcscmp: Work around two ISO C compliance bugs on several platforms.
+ * lib/wchar.in.h (wcscmp): Consider REPLACE_WCSCMP.
+ * lib/wcscmp-impl.h (wcscmp): Don't assume that the two wide characters
+ are in the range 0..INT_MAX.
+ * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Test whether wcscmp works for all wide
+ characters. Set REPLACE_WCSCMP.
+ * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSCMP.
+ * modules/wchar (Makefile.am): Substitute REPLACE_WCSCMP.
+ * modules/wcscmp (Status, Notice): Un-obsolete this module.
+ (configure.ac): Consider REPLACE_WCSCMP.
+ * doc/posix-functions/wcscmp.texi: Mention the two bugs.
+
+2023-04-18 Bruno Haible <bruno@clisp.org>
+
wmemcmp: Add tests.
* tests/test-wmemcmp.c: New file, based on tests/unistr/test-cmp.h.
* modules/wmemcmp-tests: New file.