wcscmp: Work around two ISO C compliance bugs on several platforms

2023-04-18 Thread Bruno Haible
These two patches work around an ISO C compliance bug of wcscmp() on several platforms, and another one specific to AIX. The point is that in ISO C, a "wide character" is any wchar_t value. A "wide character" is not constrained to the range 0..INT_MAX. For the precise reasoning, see

wmemcmp: Work around ISO C compliance bug on several platforms

2023-04-18 Thread Bruno Haible
These two patches work around an ISO C compliance bug of wmemcmp() on several platforms. The point is that in ISO C, a "wide character" is any wchar_t value. A "wide character" is not constrained to the range 0..INT_MAX. For the precise reasoning, see

doc: Update platform list for posix_spawnp

2023-04-18 Thread Bruno Haible
Here's an update of the platform list regarding whether posix_spawnp rejects executing shell scripts that do not start with '#!'. This came up while discussing Cygwin's posix_spawnp implementation [1]. [1] 2023-04-18 Bruno Haible

Re: [PATCH] Slightly nicer largefile, year2038 tests

2023-04-18 Thread Bruno Haible
Paul Eggert wrote: > I thought that since some of the other tests already use static_assert, > these tests could do so too. The difference is: If one of the other static_assert invocations fails and leads to a compilation error, we can and will fix it as soon as it gets reported. Whereas when a p

Re: [PATCH] Slightly nicer largefile, year2038 tests

2023-04-18 Thread Paul Eggert
Oh, I didn't know that the test harness assumes dynamic checking. I thought that since some of the other tests already use static_assert, these tests could do so too. It's obviously no big deal to revert to dynamic checking and I installed the attached.From a0ef641461085fece13cdf048e7882ba9eac

[PATCH] doc: mention when O_* defaults to 0

2023-04-18 Thread Paul Eggert
* doc/posix-headers/fcntl.texi: Document in more detail which O_* macros default to 0 in Gnulib. --- ChangeLog| 6 ++ doc/posix-headers/fcntl.texi | 9 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ce448da0b..14bbfc2b

Re: coreutils-9.3 test-strto[u]ll

2023-04-18 Thread Bruno Haible
Hi Kamil, > I had to revert the following gnulib commit to be able to build it > in the Fedora Rawhide buildroot: > https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=4e38f4a0c65d4d19883b404a84169088b84b60d2 > > ... where it was failing with: > > FAIL: test-strtoll > ==

Re: coreutils-9.3 released [stable]

2023-04-18 Thread Kamil Dudka
On Tuesday, April 18, 2023 5:16:29 PM CEST Pádraig Brady wrote: > This is to announce coreutils-9.3, a stable release. > This is a bug fix release coming about 4 weeks after the 9.2 release. > See the NEWS below for a summary of changes. Thanks! I had to revert the following gnulib commit to be a

doc: Mention a Cygwin 3.4.6 bug

2023-04-18 Thread Bruno Haible
readlinkat() has a bug on Cygwin, that's not worth working around. So I'm just documenting it: 2023-04-18 Bruno Haible doc: Mention a Cygwin 3.4.6 bug. * doc/posix-functions/readlinkat.texi: Mention a readlinkat bug on Cygwin < 3.4.7. diff --git a/doc/posix-functions/

ilogbl: Work around a Cygwin 3.4.6 bug

2023-04-18 Thread Bruno Haible
On Cygwin 3.4.6, I see this test failure: FAIL: test-ilogbl = ../../gltests/test-ilogb.h:68: assertion 'ILOGB (NAN) == FP_ILOGBNAN' failed FAIL test-ilogbl.exe (exit status: 134) This patch provides a workaround. 2023-04-18 Bruno Haible ilogbl: Work around a Cygwin

file-has-acl tests: Avoid test failures on Cygwin 3.4.6

2023-04-18 Thread Bruno Haible
On Cygwin 3.4.6 I see three test failures: FAIL: test-file-has-acl.sh == setfacl: Invalid argument file_has_acl("tmpfile0") returned yes, expected no FAIL test-file-has-acl.sh (exit status: 1) FAIL: test-file-has-acl-1.sh setfacl: Invalid arg

c32isgraph: Avoid test failure on Cygwin 3.4.6

2023-04-18 Thread Bruno Haible
On Cygwin 3.4.6, I see this test failure: FAIL: test-c32isgraph.sh ../../gltests/test-c32isgraph.c:125: assertion 'is != 0' failed ../../gltests/test-c32isgraph.sh: line 13: 57088 Aborted (core dumped) LC_ALL=$LOCALE_FR ${CHECKER} ./test-c32isgraph${EXEEX