[PATCH] readutmp: work around glibc utmpx bug

2023-07-29 Thread Paul Eggert
When compiled with _TIME_BITS=64, glibc does not work, because the files use 32-bit time_t and the code passes this to the user unmodified, but defines a struct with 64-bit time_t. Work around this compatibility bug. Problem reported by Jakub Wilk via Sven Joachim .

Renumber some unit tests

2023-07-29 Thread Bruno Haible
Recently I've been annoyed by the numbering of locale-dependent unit tests: - some test the C locale first, - some test the C locale last, - some don't test it at all. For consistency, I'm renumbering them such that - the C locale comes first ('1'), - then comes one or more locales with

Re: timespec_get: port to Ubuntu 23.04

2023-07-29 Thread Bruno Haible
> > If adopting GNULIB_POSIXCHECK for time-h would regularize > > things please feel free to do that. > > Indeed, regularizing things would be useful: Done through these two patches. 2023-07-29 Bruno Haible time-h: Simplify after 2017-05-01 change. * m4/time_h.m4 (gl_TIME_H