On 2020-04-21 20:10:52 (-0700), Paul Eggert wrote:
On 4/21/20 7:19 PM, Guy Harris wrote:
In practice, it probably won't break anything, but at least one OS *does* document it:
Yes, I saw that. I just now looked at the FreeBSD tzsetwall source code here:
https://github.com/freebsd/freebsd/blob/master/contrib/tzcode/stdtime/localt...
and as near as I can tell FreeBSD's tzsetwall (which is derived from old tzcode) is also busted because it is a no-op. That is, FreeBSD's localtime calls the equivalent of tzset first thing (as POSIX requires), and this tzset undoes the effect of any previous tzsetwall.
I have a long-standing todo item to update FreeBSD to newer tzcode. I won't shed a tear over tzsetwall. :) Philip -- Philip Paeps Senior Reality Engineer Alternative Enterprises