std-gnu11: Make compatible with Autoconf 2.70

2020-12-08 Thread Bruno Haible
When I bootstrap GNU libunistring with Autoconf 2.70, the generated 'configure' is broken leading to: checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed ./configure: line 7012: syntax error near unexpected token `ac_cv_prog_cc_stdc=$ac_cv_prog_cc_

test-getgroups.c:stringop-overflow warning on newer GCC

2020-12-08 Thread Bernhard Voelker
Newer GCC complains about this test: $ make test-getgroups.o V=1 depbase=`echo test-getgroups.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./.. \ /gl/lib -g -O2 -MT test-getgroups.o

Re: more Gnulib news

2020-12-08 Thread Paul Eggert
On 12/8/20 3:34 AM, Bruno Haible wrote: With all these topics, we can have people's attention until mid-February :) We can extend it even further by putting out announcements every other week instead of every week But yes, I suppose it'd be nice to put out brief announcements every now a

Re: Initial Travis testing results look great. One failed self test on OS X 10.10

2020-12-08 Thread Bruno Haible
Jeffrey Walton wrote in : > FAIL: test-argp-2.sh > > > *** argp.61477 2020-03-28 20:12:34.0 -0400 > --- - 2020-03-28 20:12:34.58351 -0400 > *** > *** 1,4 > ! Usage: test-argp [

argp: Improve comments

2020-12-08 Thread Bruno Haible
This patch makes argp-help.c (hopefully) more maintainable, by improving comments, and by grouping functions into sections of related functions. 2020-12-08 Bruno Haible argp: Improve comments. * lib/argp-help.c: Add sectioning comments. Write NULL to designate a null p

argp: Don't rely on undefined behaviour of _tolower()

2020-12-08 Thread Bruno Haible
'_tolower' has undefined behaviour for many characters, see . Also, 'tolower' has undefined behaviour if its argument is not in the range 0..UCHAR_MAX, see This patch fixes argp-help.c

argp: Don't pass invalid arguments to isspace() and isalnum()

2020-12-08 Thread Bruno Haible
isspace() and isalnum() should not be given arguments in the range -0x80 .. -0x01, says POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/functions/isspace.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/isalnum.html This patch fixes argp-help.c accordingly. (Although, admitt

more Gnulib news

2020-12-08 Thread Bruno Haible
Hi Paul, Your news entry on http://planet.gnu.org/ is great. Now, we have accumulated more new features in Gnulib that we can announce. In order not to fire all news at the same time, I propose one announcement per week. Alternatingly about things helpful in glibc systems and things that ensure p