[PATCH] gnu-web-doc-update: don't use host alias, cvs.sv.gnu.org

2023-03-22 Thread Jim Meyering
The usual post-release command to update grep-3.10's web docs failed for me. This fixed it. >From 78f594f7ac9315c655f663976da1d42a4ccb9b21 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 22 Mar 2023 19:51:12 -0700 Subject: [PATCH] gnu-web-doc-update: don't use host alias, cvs.sv.gnu.org

Re: *printf-posix: ISO C 23: Add %b directive for binary output of integers

2023-03-22 Thread Bruno Haible
Some details of the %b implementation that I added on 2023-03-17 were incorrect. This patch fixes them, while adding new unit tests. 2023-03-22 Bruno Haible *printf-posix: Fix implementation of %b directive. * lib/vasnprintf.c (VASNPRINTF): In the %b directive implementation,

Re: vasnwprintf: Port to older platforms without swprintf

2023-03-22 Thread Bruno Haible
Now, on Solaris 11.3 with gcc, I see a warning ../../gllib/vasnprintf.c:275:25: warning: implicit declaration of function ‘wcsnlen’ [-Wimplicit-function-declaration] I don't know whether that's a Solaris 11 bug or a GCC installation/configuration problem. Anyway, this simple patch fixes it. 20

Re: vasnwprintf: Port to older platforms without swprintf

2023-03-22 Thread Bruno Haible
On OpenBSD, I'm now seeing a "warning: unused function local_wcsnlen". Also, on some platform, there is a warning about an unused variable 'has_precision'. This patch fixes both. 2023-03-22 Bruno Haible vasnwprintf: Fix a "warning: unused function local_wcsnlen". * lib/vasnpr

Re: vasnwprintf: Port to older platforms without swprintf

2023-03-22 Thread Bruno Haible
Yesterday I did: > * tests/test-vasnwprintf-posix.c (test_function): Add more tests for the > %c and %lc directives. Some of these new tests fail on musl libc, FreeBSD, NetBSD, AIX, mingw. - For musl libc, *BSD, AIX, it's a bug in the swprintf function, and as a workaround, I'll just

Re: vasnwprintf: Port to older platforms without swprintf

2023-03-22 Thread Bruno Haible
Yesterday I did: > * modules/vasnwprintf (Depends-on): Add mbrtowc. Remove mbsrtowcs. This causes link errors on AIX 7.1, such as: xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-vasnwprintf-posix test-vasnwprintf-posix.o libtests.a ../gllib/libgnu.a libtests.a ../gllib