From d1091a21f5ce582e2c9c8cd60378634563d0cc98 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 29 Jul 2004 21:49:38 +0000 Subject: Update. 2004-07-28 GOTO Masanori * timezone/asia: Update from tzdata2004b. * timezone/backward: Likewise. * timezone/europe: Likewise. * timezone/iso3166.tab: Likewise. * timezone/leapseconds: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/zone.tab: Likewise. * timezone/private.h: Update from tzcode2004b. * timezone/zic.c: Likewise. --- timezone/zic.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'timezone/zic.c') diff --git a/timezone/zic.c b/timezone/zic.c index b164b36..9bb8662 100644 --- a/timezone/zic.c +++ b/timezone/zic.c @@ -1,4 +1,4 @@ -static char elsieid[] = "@(#)zic.c 7.113"; +static char elsieid[] = "@(#)zic.c 7.116"; #include "private.h" #include "locale.h" @@ -942,6 +942,8 @@ const int signable; error(errstring); return 0; } + if (noise && hh == HOURSPERDAY) + warning(_("24:00 not handled by pre-1998 versions of zic")); return eitol(sign) * (eitol(hh * MINSPERHOUR + mm) * eitol(SECSPERMIN) + eitol(ss)); @@ -2148,8 +2150,8 @@ register const int wantedy; --i; } if (i < 0 || i >= len_months[isleap(y)][m]) { - error(_("no day in month matches rule")); - (void) exit(EXIT_FAILURE); + if (noise) + warning(_("rule goes past start/end of month--will not work with pre-2004 versions of zic")); } } if (dayoff < 0 && !TYPE_SIGNED(time_t)) @@ -2243,5 +2245,5 @@ const int i; } /* -** UNIX was a registered trademark of UNIX System Laboratories in 1993. +** UNIX was a registered trademark of The Open Group in 2003. */ -- cgit v1.1