April 22, 2020
3:10 a.m.
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.