Re: chown tests: Fix link error on mingw 10

2023-04-19 Thread Bruno Haible
> On mingw 10, I see a link error: And another one in the lchown tests: x86_64-w64-mingw32-gcc -Wno-error -g -O2 -L/usr/local/mingw64/lib -o test-lchown.exe test-lchown.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86

chown tests: Fix link error on mingw 10

2023-04-19 Thread Bruno Haible
On mingw 10, I see a link error: x86_64-w64-mingw32-gcc -Wno-error -g -O2 -L/usr/local/mingw64/lib -o test-chown.exe test-chown.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a /usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/ld: test-chown.o: in

ctime: Fix compilation errors in C++ mode on mingw 10

2023-04-19 Thread Bruno Haible
On mingw 10, I also see two compilation errors ../gllib/time.h:867:1: error: expected unqualified-id before string constant 867 | _GL_FUNCDECL_RPL (ctime, char *, (time_t const *__tp) | ^~~~ ../gllib/time.h: In member function 'gnulib::_gl_ctime_wrapper::operator gnulib::_gl_c

random: Fix compilation errors in C++ on mingw 10

2023-04-19 Thread Bruno Haible
Building a testdir on mingw 10.0, I see these compilation errors: In file included from ../gllib/stdlib.h:52, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/sec_api/stdlib_s.h:9, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/stdlib.h:765,

Re: remaining tasks before Autoconf release

2023-04-19 Thread Eric Blake
On Wed, Apr 19, 2023 at 02:14:05PM -0700, Paul Eggert wrote: > +++ b/doc/autoconf.texi > @@ -8808,18 +8808,20 @@ if possible. These types may include > @code{blkcnt_t}, @code{dev_t}, > > Also, arrange for a @command{configure} option @code{--enable-year2038} > to request widening the type @co

Re: recommending AC_SYS_YEAR2038_REQUIRED ?

2023-04-19 Thread Zack Weinberg
On Wed, Apr 19, 2023, at 5:23 PM, Paul Eggert wrote: > On 2023-04-11 17:10, Zack Weinberg wrote: >> I'm also happy with this resolution. I do not have time to do the Autoconf >> work until the weekend. > > I notice you were careful to not say *which* weekend. :-) Ugh. Yeah. Don't expect anything

Re: recommending AC_SYS_YEAR2038_REQUIRED ?

2023-04-19 Thread Paul Eggert
On 2023-04-11 17:10, Zack Weinberg wrote: I'm also happy with this resolution. I do not have time to do the Autoconf work until the weekend. I notice you were careful to not say *which* weekend. :-) Anyway, I coded up a draft patch and published it here: https://lists.gnu.org/r/autoconf/202

Re: AC_SYS_LARGEFILE_REQUIRED vs. AC_SYS_YEAR2038_REQUIRED on MSVC

2023-04-19 Thread Paul Eggert
On 2023-04-16 08:18, Bruno Haible wrote: Yes. Here are adjusted patches. Thanks, I installed those.

Re: remaining tasks before Autoconf release

2023-04-19 Thread Paul Eggert
On 2023-04-16 08:35, Bruno Haible wrote: There's still the rename of AC_SYS_YEAR2038_REQUIRED to AC_SYS_YEAR2038_OPT_OUT to do, that you proposed in [1] and Zack agreed [2]. Attached are proposed patches to do something along those lines, the first for Autoconf and the second to propagate this

doc: Add references to changes accepted for future POSIX revisions

2023-04-19 Thread Bruno Haible
Some functions have only recently been standardized, for the next POSIX revision. It's useful to have these specifications handy, even though they are sometimes hard to read, because these specifications will soon be more normative than e.g. a manual page. 2023-04-19 Bruno Haible doc:

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

2023-04-19 Thread Bruno Haible
Like wcscmp(), wcsncmp() has two ISO C compliance bugs on several platforms. These two patches provide the workaround. In particular, the module 'wcsncmp' is no longer obsolete. 2023-04-19 Bruno Haible wcsncmp: Add tests. * tests/test-wcsncmp.c: New file, based on tests/unist