Bug in tz code
Olson, Arthur David (NIH/NCI) [E]
olsona at dc37a.nci.nih.gov
Mon Jan 26 21:34:16 UTC 2009
The America/Godthab problem is a fencepost error; the proposed change
below fixes it.
--ado
------- zic.c -------
*** /tmp/geta5564 Mon Jan 26 16:26:50 2009
--- /tmp/getb5564 Mon Jan 26 16:26:50 2009
***************
*** 3,9 ****
** 2006-07-17 by Arthur David Olson.
*/
! static char elsieid[] = "@(#)zic.c 8.18";
#include "private.h"
#include "locale.h"
--- 3,9 ----
** 2006-07-17 by Arthur David Olson.
*/
! static char elsieid[] = "@(#)zic.c 8.19";
#include "private.h"
#include "locale.h"
***************
*** 1995,2001 ****
min_year = max_year = EPOCH_YEAR;
if (leapseen) {
updateminmax(leapminyear);
! updateminmax(leapmaxyear);
}
for (i = 0; i < zonecount; ++i) {
zp = &zpfirst[i];
--- 1995,2001 ----
min_year = max_year = EPOCH_YEAR;
if (leapseen) {
updateminmax(leapminyear);
! updateminmax(leapmaxyear + (leapmaxyear < INT_MAX));
}
for (i = 0; i < zonecount; ++i) {
zp = &zpfirst[i];
More information about the tz
mailing list