[tz] Buggy %z behaviour in strftime

Michael H Deckers michael.h.deckers at googlemail.com
Tue Jul 19 11:38:21 UTC 2022


On 2022-07-18 16:03, Paul Eggert wrote:
> and lines 1 and 5 are wrong.


    Thanks for these examples!

    The semantics of strftime() is a matter of the C standard
    only, hence the result is not required to depend on members
    like .tm_gmtoff or .tm_zone which are not required by C
    (but it could depend on the exact value of .tm_isdst).
    And POSIX seems to say that their struct tm and strftime()
    are compliant with C18.

    So it is perhaps a bit too harsh to say that AIX and Solaris
    are wrong -- they do not seem to violate a requirement of C.

    Michael Deckers.



More information about the tz mailing list