Re: [PATCH] totalorder, totalorderf, totalorderl: new modules

2023-10-02 Thread Bruno Haible
Note: it looks like the libstdc++ has similar functions, with a templated implementation: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96526 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9805965e3551b66b5bd751d6076791d00cdeb137 Here's a discussion how to get nearly optimal code for this functi

Re: [PATCH] totalorder, totalorderf, totalorderl: new modules

2023-10-02 Thread Bruno Haible
Since this is obviously CPU dependent code, I tested it on various platforms. There were failures only on two platforms (see 'FAIL' below); the tests passed on all other platforms. * Linux/glibc x86_64: Ubuntu 22.04, Fedora 31, Debian 9.6 x86: Ubuntu 22.04, Debian 9.1 x86_64-x32: Ubuntu 22.

Re: [PATCH] fdopendir: Use Windows code path on OS/2 kLIBC

2023-10-02 Thread KO Myung-Hun
Hi/2. Bruno Haible wrote: > KO Myung-Hun wrote: >> * lib/closedir.c (closedir): Use Windows code path. >> * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd): >> Remove. >> * lib/dirfd.c (_gl_register_dirp_fd, _gl_unregister_dirp_fd): Remove. >> (dirfd): Use Windows code path. >> * li

[PATCH] init.sh: Consider OS/2-style path

2023-10-02 Thread KO Myung-Hun
tests/init.sh (setup_): Use $PATH_SEPARATOR as a path separator, and consider an OS/2-style absolute path. --- tests/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/init.sh b/tests/init.sh index 0494097e9f..2a88865972 100644 --- a/tests/init.sh +++ b/tests/i

Re: [PATCH] fdopendir: Use Windows code path on OS/2 kLIBC

2023-10-02 Thread Bruno Haible
KO Myung-Hun wrote: > This patch breaks compilation like this: > > - > gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -g -O2 -MT > fdopendir.o -MD -MP -MF .deps/fdopendir.Tpo -c -o fdopendir.o fdopendir.c > fdopendir.c:34:5: error: #error "unexpected configuration: > GNULIB_defined

localcharset: Avoid internal compiler error with -Wextra on macOS 10.5

2023-10-02 Thread Bruno Haible
On Mac OS X 10.5.x, with the default compiler ("gcc version 4.0.1 (Apple Inc. build 5465)"), I see this compilation error: $ gcc -std=gnu99 -DHAVE_CONFIG_H -DNO_XMALLOC -I. -I../../../../gettext-runtime/intl/gnulib-lib -I.. -DIN_LIBRARY -DINSTALLDIR=\"/Users/bruno/data/local-macos/lib\" -DNO_XMA

Re: Issue on macOS Sonoma affecting aria2

2023-10-02 Thread Bruno Haible
[CCing bug-gnulib] Shupeng Xue (Xerxes Ⅱ) wrote: > I am writing to report an issue I've encountered with GNU gettext on macOS > Sonoma that impacts the functionality of aria2. When attempting to execute > aria2c, the application terminates abruptly with an > 'NSInvalidArgumentException’. > > E