Re: [PATCH] tests: printf: provide explicit TZ start/end
From:
Chet Ramey
Subject:
Re: [PATCH] tests: printf: provide explicit TZ start/end
Date:
Thu, 13 Jun 2024 10:25:56 -0700
User-agent:
Mozilla Thunderbird
On 6/11/24 5:52 AM, Grisha Levit wrote:
POSIX says about the TZ variable:
If the dst field is specified and the rule field is not, it is
implementation-defined when the changes to and from DST occur.
musl seems to interpret `TZ=EST5EDT` as having DST always in effect,
causing the tests that rely on the glibc behavior (of defaulting to
America/New_York transition rules) to fail.
It's not just glibc; musl is the oddball here. But since this change
will (or should) work with all systems that use tzdata, it should not
have any impact on other systems.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/