]> Savannah Git Hosting - gnulib.git/commit
wcsncmp: Work around two ISO C compliance bugs on several platforms.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2023 15:59:03 +0000 (17:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2023 15:59:03 +0000 (17:59 +0200)
commitccb59e4c36bea4915303a24ea1c7dec109db97eb
tree30eb5e84cca4b21d1a18982cd5676fe80aaed08e
parent9bf6bcc74b4caf4d74bab8d98a4e00f761f2e5ca
wcsncmp: Work around two ISO C compliance bugs on several platforms.

* lib/wchar.in.h (wcsncmp): Consider REPLACE_WCSNCMP.
* lib/wcsncmp-impl.h (wcsncmp): Don't assume that the two wide
characters are in the range 0..INT_MAX.
* m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Test whether wcsncmp works for all
wide characters. Set REPLACE_WCSNCMP.
* m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNCMP.
* modules/wchar (Makefile.am): Substitute REPLACE_WCSNCMP.
* modules/wcsncmp (Status, Notice): Un-obsolete this module.
(configure.ac): Consider REPLACE_WCSNCMP.
* doc/posix-functions/wcsncmp.texi: Mention the two bugs.
ChangeLog
doc/posix-functions/wcsncmp.texi
lib/wchar.in.h
lib/wcsncmp-impl.h
m4/wchar_h.m4
m4/wcsncmp.m4
modules/wchar
modules/wcsncmp