]> Savannah Git Hosting - gnulib.git/commit
wcscmp: Work around two ISO C compliance bugs on several platforms.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2023 00:14:09 +0000 (02:14 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2023 00:39:36 +0000 (02:39 +0200)
commit4b440d3568b01dd9acd5242bea8b63fc43428f5a
tree58e1ba3d97e79f2e21b73badab54a3b5b6d277d5
parent7634eee7a8da4a2f5eb9522ec01d24b8ad105df7
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.
ChangeLog
doc/posix-functions/wcscmp.texi
lib/wchar.in.h
lib/wcscmp-impl.h
m4/wchar_h.m4
m4/wcscmp.m4
modules/wchar
modules/wcscmp