[tz] Extra transition type is generated by zic with -r specified

Paul Eggert eggert at cs.ucla.edu
Mon Oct 25 18:51:17 UTC 2021


On 10/25/21 11:15, Almaz Mingaleev wrote:
> How feasible is it to add a flag which does not truncate the file?

The -r flag causes zic to truncate the file, so you can avoid truncation 
by not using the -r flag.

Perhaps you meant "truncate the file in some other way"? What way would 
you like?


> Also, RFC [1] says the following about TZ string:
> "the string MUST be
> consistent with the last version 2+ transition". Doesn't
> truncation violate that?

It's not an RFC conformance problem because the TZ string is empty in 
the truncated file, so there's nothing to be consistent with. The full 
quote from RFC 8536 is: "If the string is nonempty and one or more 
transitions appear in the version 2+ data, the string MUST be consistent 
with the last version 2+ transition."


More information about the tz mailing list