Re: bug#64937: "who" reports funny dates

2023-08-03 Thread Thorsten Kukuk
Hi, On Fri, Aug 04, Paul Eggert wrote: > Thanks for doing all that work. I looked into it, and found a problem: a > command like "who /var/log/wtmp" stops working because the systemd > emulation of read_utmp only supports plain "who" (rougnly equivalent to > "who /var/run/utmp" on Fedora). S

Re: bug#64937: "who" reports funny dates

2023-08-03 Thread Paul Eggert
Thanks for doing all that work. I looked into it, and found a problem: a command like "who /var/log/wtmp" stops working because the systemd emulation of read_utmp only supports plain "who" (rougnly equivalent to "who /var/run/utmp" on Fedora). So I installed it into coreutils, but the default i

Re: Including config.h emits warnings from -Wundef

2023-08-03 Thread Bruno Haible
Jeffrey Walton wrote: > My personal opinion is, there's nothing to fix. > > That is exactly how macros are supposed to work. Anything undefined > evaluates to 0. It has been that way since the early days of C and > C++. > > If there's a fix, then it is that you don't use -Wundef. On the simple l

Re: Including config.h emits warnings from -Wundef

2023-08-03 Thread Jeffrey Walton
On Thu, Aug 3, 2023 at 11:52 AM Tim Rühsen wrote: > > I just updated gnulib and recognized these warnings with every '#include > '. Before the update there were no warnings. > > ../config.h:3317:34: warning: "__cplusplus" is not defined, evaluates to > 0 [-Wundef] > [...] > Disabling -Wundef for t

Re: Including config.h emits warnings from -Wundef

2023-08-03 Thread Tim Rühsen
Awesome, thank you Bruno ! Tested and your patch fixes the issue(s) for me. Tim On 8/3/23 18:11, Bruno Haible wrote: On Donnerstag, 3. August 2023 17:52:29 CEST Tim Rühsen wrote: Hi, I just updated gnulib and recognized these warnings with every '#include '. Before the update there were no w

Re: Including config.h emits warnings from -Wundef

2023-08-03 Thread Bruno Haible
On Donnerstag, 3. August 2023 17:52:29 CEST Tim Rühsen wrote: > Hi, > > I just updated gnulib and recognized these warnings with every '#include > '. Before the update there were no warnings. > > ../config.h:3317:34: warning: "__cplusplus" is not defined, evaluates to > 0 [-Wundef] > 3317 | #

Including config.h emits warnings from -Wundef

2023-08-03 Thread Tim Rühsen
Hi, I just updated gnulib and recognized these warnings with every '#include '. Before the update there were no warnings. ../config.h:3317:34: warning: "__cplusplus" is not defined, evaluates to 0 [-Wundef] 3317 | #if !defined HAVE_C_ALIGNASOF && __cplusplus < 201103 && !defined alignof

doc: More platform detail

2023-08-03 Thread Bruno Haible
The configure test shows that Solaris OpenIndiana and Solaris OmniOS don't have a better fnmatch() implementation than FreeBSD. 2023-08-03 Bruno Haible doc: More platform detail. * doc/posix-functions/fnmatch.texi: Mention Solaris OpenIndiana here, since it behaves dif

doc: Add references to FreeBSD bugs

2023-08-03 Thread Bruno Haible
For keeping track of open FreeBSD bugs: 2023-08-03 Bruno Haible doc: Add references to FreeBSD bugs. * doc/posix-functions/fnmatch.texi: Add commented reference to FreeBSD bug. * doc/posix-functions/wcscmp.texi: Likewise. * doc/posix-functions/wcsncmp.t