On 2026-06-15 21:33, Collin Funk wrote:
Paul, what do you think? This feels like a bug in BSD to me, but I
certainly trust your opinion here more than mine.

It's a poorly-specified part of the POSIX spec, updated in POSIX.1-2024 but still with gaps. I prefer the tzcode/Gnulib interpretation as it matches what programmers typically expect. I have heard arguments that the BSD interpretation is required by POSIX (for compatibility back to POSIX.1-2017 and earlier, which did not require tm_gmtoff), but I don't buy them. I do think that the BSD behavior is allowed by POSIX, unfortunately.

How does GNU 'date' end up relying on BSD strftime %z? Doesn't GNU 'date' use gnulib nstrftime, and doesn't that do the right thing with %z?

Reply via email to