]> Savannah Git Hosting - gnulib.git/commit
strverscmp: Work around bug in musl libc 1.2.3 and in Cygwin.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Jan 2024 10:37:05 +0000 (11:37 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Jan 2024 10:37:05 +0000 (11:37 +0100)
commitdee279cf2a15f3554847dcb59d1d103d72513d8a
treea664279d6616aafbd5e91ff2cfca8978fe6bbc7f
parentd57daa5979535178a57789403506270b6311cc85
strverscmp: Work around bug in musl libc 1.2.3 and in Cygwin.

Reported by Dmitry Bogatov <KAction@gnu.org> via Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-01/msg00002.html>.

* m4/string_h.m4 (gl_STRING_H_DEFAULTS): Initialize REPLACE_STRVERSCMP.
* m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Test whether strverscmp works
and set REPLACE_STRVERSCMP if not.
* lib/string.in.h (strverscmp): Consider REPLACE_STRVERSCMP.
* modules/strverscmp (Depends-on, configure.ac): Likewise.
* modules/string (Makefile.am): Substitute REPLACE_STRVERSCMP.
* tests/test-strverscmp.c (main): Add test cases suggested by Dmitry
Bogatov and by Simon Josefsson.
* doc/glibc-functions/strverscmp.texi: Mention the musl and Cygwin bug.
Update version info regarding FreeBSD.
ChangeLog
doc/glibc-functions/strverscmp.texi
lib/string.in.h
m4/string_h.m4
m4/strverscmp.m4
modules/string
modules/strverscmp
tests/test-strverscmp.c