tz behavior difference TZif vs. TZif2
Olson, Arthur David (NIH/NCI) [E]
olsona at dc37a.nci.nih.gov
Sat Mar 25 21:08:00 UTC 2006
Here's a potential fix to the fencepost problem. It regresses correctly
here on elsie; we'll see what happens elsewhere.
Note that this is a change to the 8.2 version circulated earlier this
week.
--ado
------- zic.c -------
*** /tmp/geta5270 Sat Mar 25 15:47:14 2006
--- /tmp/getb5270 Sat Mar 25 15:47:15 2006
***************
*** 1,4 ****
! static char elsieid[] = "@(#)zic.c 8.2";
#include "private.h"
#include "locale.h"
--- 1,4 ----
! static char elsieid[] = "@(#)zic.c 8.3";
#include "private.h"
#include "locale.h"
***************
*** 1606,1614 ****
thisleaplim = thisleapi + thisleapcnt;
for (i = 0; i < typecnt; ++i)
writetype[i] = thistimecnt == timecnt;
! if (thistimecnt == 0)
! writetype[types[thistimelim - 1]] = TRUE;
! else {
for (i = thistimei - 1; i < thistimelim; ++i)
if (i >= 0)
writetype[types[i]] = TRUE;
--- 1606,1619 ----
thisleaplim = thisleapi + thisleapcnt;
for (i = 0; i < typecnt; ++i)
writetype[i] = thistimecnt == timecnt;
! if (thistimecnt == 0) {
! /*
! ** No transition times fall in the current
! ** (32- or 64-bit) window.
! */
! if (typecnt != 0)
! writetype[typecnt - 1] = TRUE;
! } else {
for (i = thistimei - 1; i < thistimelim; ++i)
if (i >= 0)
writetype[types[i]] = TRUE;
More information about the tz
mailing list