]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-08-05 Ulrich Drepper <drepper@redhat.com>
authorRoland McGrath <roland@gnu.org>
Mon, 17 Oct 2005 05:14:18 +0000 (05:14 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 17 Oct 2005 05:14:18 +0000 (05:14 +0000)
* timezone/checktab.awk: Update from tzcode2005k.
* timezone/private.h: Likewise.
* timezone/scheck.c: Likewise.
* timezone/tzselect.ksh: Likewise.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.
* timezone/africa: Update from tzdata2005k.
* timezone/antarctica: Likewise.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/solar87: Likewise.
* timezone/solar88: Likewise.
* timezone/solar89: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.

timezone/antarctica
timezone/checktab.awk
timezone/iso3166.tab
timezone/leapseconds
timezone/private.h
timezone/scheck.c
timezone/solar87
timezone/solar88
timezone/solar89
timezone/tzselect.ksh
timezone/zic.c

index ad47860bd61e2915194e0a2d16db56170ba9a8a6..c11d24e7d59ffda268b8779e53a588cab63b7c30 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)antarctica       7.24
+# @(#)antarctica       7.25
 
 # From Paul Eggert (1999-11-15):
 # To keep things manageable, we list only locations occupied year-round; see
@@ -157,7 +157,7 @@ Zone Antarctica/DumontDUrville 0 -  zzz     1947
 # From Hideyuki Suzuki (1999-02-06):
 # In all Japanese stations, +0300 is used as the standard time.  [See]
 # <a href="http://www.crl.go.jp/uk/uk201/basyo.htm">[reference in Japanese]</a>
-# and information from KAMO Hiroyasu <wd@ics.nara-wu.ac.jp>.
+# and information from KAMO Hiroyasu.
 #
 # Syowa station, which is the first antarctic station of Japan,
 # was established on 1957-01-29.  Since Syowa station is still the main
@@ -271,7 +271,7 @@ Zone Antarctica/Rothera     0       -       zzz     1976 Dec  1
 #
 # Palmer, Anvers Island, since 1965 (moved 2 miles in 1968)
 #
-# From Ethan Dicks <erd@mcmsun5.mcmurdo.gov> (1996-10-06):
+# From Ethan Dicks (1996-10-06):
 # It keeps the same time as Punta Arenas, Chile, because, just like us
 # and the South Pole, that's the other end of their supply line....
 # I verified with someone who was there that since 1980,
index 6a2d19ae00ae8b997e30bee312a1638aa7e787cf..6d532141e6323957b7d178b42100359805f5754b 100644 (file)
@@ -1,8 +1,8 @@
 # Check tz tables for consistency.
 
-# @(#)checktab.awk     1.6
+# @(#)checktab.awk     1.7
 
-# Contributed by Paul Eggert <eggert@twinsun.com>.
+# Contributed by Paul Eggert.
 
 BEGIN {
        FS = "\t"
index dad0d9d34ad28deef579241ebc8ba1848cd18862..07b43fc7c4bd63c4b89d5940a0fb36dfcc1f4cb5 100644 (file)
@@ -1,8 +1,8 @@
 # ISO 3166 alpha-2 country codes
 #
-# @(#)iso3166.tab      1.16
+# @(#)iso3166.tab      1.17
 #
-# From Paul Eggert <eggert@twinsun.com> (2004-06-14):
+# From Paul Eggert (2004-06-14):
 #
 # This file contains a table with the following columns:
 # 1.  ISO 3166-1 alpha-2 country code, current as of
index 2966e760e3788763482548030dff74e34da168ca..a1078837d7f859fe5ce3e4394a4394052bc0d8b7 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)leapseconds      7.19
+# @(#)leapseconds      7.20
 
 # Allowance for leapseconds added to each timezone file.
 
@@ -43,8 +43,10 @@ Leap 1994    Jun     30      23:59:60        +       S
 Leap   1995    Dec     31      23:59:60        +       S
 Leap   1997    Jun     30      23:59:60        +       S
 Leap   1998    Dec     31      23:59:60        +       S
+Leap   2005    Dec     31      23:59:60        +       S
 
 #      INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)
+#
 # SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE
 #
 # SERVICE DE LA ROTATION TERRESTRE
@@ -52,29 +54,39 @@ Leap        1998    Dec     31      23:59:60        +       S
 # 61, Av. de l'Observatoire 75014 PARIS (France)
 # Tel.      : 33 (0) 1 40 51 22 26
 # FAX       : 33 (0) 1 40 51 22 91
-# Internet  : services.iers@obspm.fr
-#
-#                                              Paris, 21 July 2004
-#
+# ...
+# http://hpiers.obspm.fr/eop-pc
 #
-#                                              Bulletin C 28
+#                                              Paris, 4 July 2005
+#                                                      
+#                                              Bulletin C 30
 #
 #                                              To authorities responsible
 #                                              for the measurement and
 #                                              distribution of time
 #
-#                      INFORMATION ON UTC - TAI
 #
-# NO positive leap second will be introduced at the end of December 2004.
+#                                    UTC TIME STEP
+#                             on the 1st of January 2006
+#
+# A positive leap second will be introduced at the end of December 2005.
+# The sequence of dates of the UTC second markers will be:
+#
+#                      2005 December 31,     23h 59m 59s
+#                      2005 December 31,     23h 59m 60s
+#                      2006 January   1,      0h  0m  0s
+#
 # The difference between UTC and the International Atomic Time TAI is:
 #
-#      from 1999 January 1, 0h UTC, until further notice : UTC-TAI = -32 s
+# from 1999 January 1, 0h UTC, to 2006 January 1  0h UTC  : UTC-TAI = - 32s
+# from 2006 January 1, 0h UTC, until further notice       : UTC-TAI = - 33s
 #
-# Leap seconds can be introduced in UTC at the end of the months of December
+# Leap seconds can be introduced in UtC at the end of the months of December
 # or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every
-# six months, either to announce a time step in UTC, or to confirm that there
+# six months, either to announce a time step in UTC or to confirm that there
 # will be no time step at the next possible date.
 #
 #                                      Daniel GAMBIS
-#                                      Director
+#                                      Head
 #                                      Earth Orientation Center of IERS
+#                                      Observatoire de Paris, France
index 5de2f7dfe46d9ac84f8a0a8fdcbadb7a2591e60b..9a1ef22abb741d64dc9f35499e81079cc53aca42 100644 (file)
@@ -25,6 +25,8 @@ static char   privatehid[] = "@(#)private.h   7.55";
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
+#define GRANDPARENTED  "Local time zone must be set--see zic manual page"
+
 /*
 ** Defaults for preprocessor symbols.
 ** You can override these in your C compiler options, e.g. `-DHAVE_ADJTIME=0'.
@@ -91,13 +93,13 @@ static char privatehid[] = "@(#)private.h   7.55";
 #include "time.h"
 #include "stdlib.h"
 
-#if HAVE_GETTEXT - 0
+#if HAVE_GETTEXT
 #include "libintl.h"
-#endif /* HAVE_GETTEXT - 0 */
+#endif /* HAVE_GETTEXT */
 
-#if HAVE_SYS_WAIT_H - 0
+#if HAVE_SYS_WAIT_H
 #include <sys/wait.h>  /* for WIFEXITED and WEXITSTATUS */
-#endif /* HAVE_SYS_WAIT_H - 0 */
+#endif /* HAVE_SYS_WAIT_H */
 
 #ifndef WIFEXITED
 #define WIFEXITED(status)      (((status) & 0xff) == 0)
@@ -106,20 +108,20 @@ static char       privatehid[] = "@(#)private.h   7.55";
 #define WEXITSTATUS(status)    (((status) >> 8) & 0xff)
 #endif /* !defined WEXITSTATUS */
 
-#if HAVE_UNISTD_H - 0
+#if HAVE_UNISTD_H
 #include "unistd.h"    /* for F_OK and R_OK */
-#endif /* HAVE_UNISTD_H - 0 */
+#endif /* HAVE_UNISTD_H */
 
-#if !(HAVE_UNISTD_H - 0)
+#if !HAVE_UNISTD_H
 #ifndef F_OK
 #define F_OK   0
 #endif /* !defined F_OK */
 #ifndef R_OK
 #define R_OK   4
 #endif /* !defined R_OK */
-#endif /* !(HAVE_UNISTD_H - 0) */
+#endif /* !HAVE_UNISTD_H */
 
-/* Unlike <ctype.h>'s isdigit, this also works if c < 0 | c > UCHAR_MAX.  */
+/* Unlike <ctype.h>'s isdigit, this also works if c < 0 | c > UCHAR_MAX. */
 #define is_digit(c) ((unsigned)(c) - '0' <= 9)
 
 /*
@@ -216,7 +218,7 @@ char *      imalloc P((int n));
 void * irealloc P((void * pointer, int size));
 void   icfree P((char * pointer));
 void   ifree P((char * pointer));
-char * scheck P((const char *string, const char *format));
+char * scheck P((const char *string, char *format));
 
 /*
 ** Finally, some convenience items.
@@ -255,7 +257,8 @@ char *      scheck P((const char *string, const char *format));
 ** add one more for a minus sign if the type is signed.
 */
 #define INT_STRLEN_MAXIMUM(type) \
-    ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + 1 + TYPE_SIGNED(type))
+       ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \
+       1 + TYPE_SIGNED(type))
 #endif /* !defined INT_STRLEN_MAXIMUM */
 
 /*
@@ -289,11 +292,11 @@ char *    scheck P((const char *string, const char *format));
 */
 
 #ifndef _
-#if HAVE_GETTEXT - 0
+#if HAVE_GETTEXT
 #define _(msgid) gettext(msgid)
-#else /* !(HAVE_GETTEXT - 0) */
+#else /* !HAVE_GETTEXT */
 #define _(msgid) msgid
-#endif /* !(HAVE_GETTEXT - 0) */
+#endif /* !HAVE_GETTEXT */
 #endif /* !defined _ */
 
 #ifndef TZ_DOMAIN
index fd115f9c4835a1356c2708bbf592a4458d3a67dc..2dd9b35285464130bb467f2e24b941351fb64075 100644 (file)
@@ -11,7 +11,7 @@ static char   elsieid[] = "@(#)scheck.c       8.16";
 char *
 scheck(string, format)
 const char * const     string;
-const char * const     format;
+char * const           format;
 {
        register char *         fbuf;
        register const char *   fp;
index 3f32347973b82960f7e845cee614197b70e74a26..21ba2c2d6485007a79e8510e54065af28bd31697 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)solar87  7.3
+# @(#)solar87  7.4
 
 # So much for footnotes about Saudi Arabia.
 # Apparent noon times below are for Riyadh; your mileage will vary.
@@ -381,8 +381,8 @@ Rule        sol87   1987    only    -       Dec     31      12:02:45s -0:02:45 -
 # Before and after 1987, we'll operate on local mean solar time.
 
 # Zone NAME            GMTOFF  RULES/SAVE      FORMAT  [UNTIL]
-Zone   Asia/Riyadh87   3:07:04 -               ??      1987
-                       3:07:04 sol87           ??      1988
-                       3:07:04 -               ??
+Zone   Asia/Riyadh87   3:07:04 -               zzz     1987
+                       3:07:04 sol87           zzz     1988
+                       3:07:04 -               zzz
 # For backward compatibility...
 Link   Asia/Riyadh87   Mideast/Riyadh87
index 41a64e5023c9a118deb5920dfeb916fcc72f9014..7e15f2b077495201ef7e2d4bc2683c9fd8f37cfb 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)solar88  7.3
+# @(#)solar88  7.4
 
 # Apparent noon times below are for Riyadh; they're a bit off for other places.
 # Times were computed using formulas in the U.S. Naval Observatory's
@@ -381,8 +381,8 @@ Rule        sol88   1988    only    -       Dec     31      12:03:05s -0:03:05 -
 # Before and after 1988, we'll operate on local mean solar time.
 
 # Zone NAME            GMTOFF  RULES/SAVE      FORMAT  [UNTIL]
-Zone   Asia/Riyadh88   3:07:04 -               ??      1988
-                       3:07:04 sol88           ??      1989
-                       3:07:04 -               ??
+Zone   Asia/Riyadh88   3:07:04 -               zzz     1988
+                       3:07:04 sol88           zzz     1989
+                       3:07:04 -               zzz
 # For backward compatibility...
 Link   Asia/Riyadh88   Mideast/Riyadh88
index a6d3d718d3135b69c6360fb86cd853f1e1404ff3..3c36b6a30dd2bb34d3d3f1aa4dfb216503a3c6b7 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)solar89  7.4
+# @(#)solar89  7.5
 
 # Apparent noon times below are for Riyadh; they're a bit off for other places.
 # Times were computed using a formula provided by the U. S. Naval Observatory:
@@ -386,8 +386,8 @@ Rule        sol89   1989    only    -       Dec     31      12:03:00s -0:03:00 -
 # Before and after 1989, we'll operate on local mean solar time.
 
 # Zone NAME            GMTOFF  RULES/SAVE      FORMAT  [UNTIL]
-Zone   Asia/Riyadh89   3:07:04 -               ??      1989
-                       3:07:04 sol89           ??      1990
-                       3:07:04 -               ??
+Zone   Asia/Riyadh89   3:07:04 -               zzz     1989
+                       3:07:04 sol89           zzz     1990
+                       3:07:04 -               zzz
 # For backward compatibility...
 Link   Asia/Riyadh89   Mideast/Riyadh89
index be589240d198512f9fe86a8b76eae929be300d5d..f6e28bfdab13bb2f5be07f4304b751c454e3bade 100644 (file)
@@ -1,11 +1,11 @@
 #! @KSH@
 
-# '@(#)tzselect.ksh    1.7'
+# '@(#)tzselect.ksh    1.8'
 
 # Ask the user about the time zone, and output the resulting TZ value to stdout.
 # Interact with the user via stderr and stdin.
 
-# Contributed by Paul Eggert <eggert@twinsun.com>.
+# Contributed by Paul Eggert.
 
 # Porting notes:
 #
index fb86fc69d2184c8f99dd5396c981af2da91b8419..57dc5311d5060902e867e6eecda9d06b9d02f54b 100644 (file)
@@ -1,4 +1,4 @@
-static char    elsieid[] = "@(#)zic.c  7.122";
+static char    elsieid[] = "@(#)zic.c  7.124";
 
 /*
 ** Regardless of the type of time_t, we do our work using this type.
@@ -10,6 +10,10 @@ typedef int  zic_t;
 #include "locale.h"
 #include "tzfile.h"
 
+#ifndef ZIC_MAX_ABBR_LEN_WO_WARN
+#define ZIC_MAX_ABBR_LEN_WO_WARN       6
+#endif /* !defined ZIC_MAX_ABBR_LEN_WO_WARN */
+
 #if HAVE_SYS_STAT_H
 #include "sys/stat.h"
 #endif
@@ -475,8 +479,7 @@ char *      argv[];
        (void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
 #endif /* defined unix */
 #if HAVE_GETTEXT
-       (void) setlocale(LC_CTYPE, "");
-       (void) setlocale(LC_MESSAGES, "");
+       (void) setlocale(LC_ALL, "");
 #ifdef TZ_DOMAINDIR
        (void) bindtextdomain(TZ_DOMAIN, TZ_DOMAINDIR);
 #endif /* defined TEXTDOMAINDIR */
@@ -2197,6 +2200,41 @@ const char * const       string;
 {
        register int    i;
 
+       if (strcmp(string, GRANDPARENTED) != 0) {
+               register const char *   cp;
+               register char *         wp;
+
+               /*
+               ** Want one to ZIC_MAX_ABBR_LEN_WO_WARN alphabetics
+               ** optionally followed by a + or - and a number from 1 to 14.
+               */
+               cp = string;
+               wp = NULL;
+               while (isascii(*cp) && isalpha(*cp))
+                       ++cp;
+               if (cp - string == 0)
+wp = _("time zone abbreviation lacks alphabetic at start");
+               if (noise && cp - string > 3)
+wp = _("time zone abbreviation has more than 3 alphabetics");
+               if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN)
+wp = _("time zone abbreviation has too many alphabetics");
+               if (wp == NULL && (*cp == '+' || *cp == '-')) {
+                       ++cp;
+                       if (isascii(*cp) && isdigit(*cp))
+                               if (*cp++ == '1' && *cp >= '0' && *cp <= '4')
+                                       ++cp;
+               }
+               if (*cp != '\0')
+wp = _("time zone abbreviation differs from POSIX standard");
+               if (wp != NULL) {
+                       wp = ecpyalloc(wp);
+                       wp = ecatalloc(wp, " (");
+                       wp = ecatalloc(wp, string);
+                       wp = ecatalloc(wp, ")");
+                       warning(wp);
+                       ifree(wp);
+               }
+       }
        i = strlen(string) + 1;
        if (charcnt + i > TZ_MAX_CHARS) {
                error(_("too many, or too long, time zone abbreviations"));