Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/TZDATA]: src/external/public-domain/tz/dist Import tzdata2022f from



details:   https://anonhg.NetBSD.org/src/rev/0eff839c09a2
branches:  TZDATA
changeset: 372188:0eff839c09a2
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Oct 30 01:02:50 2022 +0000

description:
Import tzdata2022f from
   https://github.com/JodaOrg/global-tz/releases/download/2022fgtz/tzdata2022fgtz.tar.gz

Summary of changes in tzdata2022f (2022-10-28 18:04:57 -0700):
  * Mexico will no longer observe DST after 2022, except for areas
    near the US border that continue to observe US DST rules.
  * Fiji will not observe DST in 2022/3.
  * Simplify four Ontario zones, as most of the post-1970 differences
    seem to have been imaginary.

diffstat:

 external/public-domain/tz/dist/Makefile       |   39 +++--
 external/public-domain/tz/dist/NEWS           |  101 ++++++++++++++
 external/public-domain/tz/dist/africa         |   38 ++--
 external/public-domain/tz/dist/antarctica     |    2 +-
 external/public-domain/tz/dist/asia           |   21 +-
 external/public-domain/tz/dist/australasia    |   26 ++-
 external/public-domain/tz/dist/backward       |  182 +++++++++++++++++--------
 external/public-domain/tz/dist/backzone       |   69 +++++++++
 external/public-domain/tz/dist/checklinks.awk |   24 +++-
 external/public-domain/tz/dist/etcetera       |   17 +-
 external/public-domain/tz/dist/europe         |  122 ++++++++---------
 external/public-domain/tz/dist/northamerica   |  100 +++-----------
 external/public-domain/tz/dist/southamerica   |    8 -
 external/public-domain/tz/dist/theory.html    |    1 +
 external/public-domain/tz/dist/version        |    2 +-
 external/public-domain/tz/dist/ziguard.awk    |   70 ++++++++++
 external/public-domain/tz/dist/zone.tab       |    3 -
 external/public-domain/tz/dist/zone1970.tab   |    3 -
 18 files changed, 545 insertions(+), 283 deletions(-)

diffs (truncated from 1576 to 300 lines):

diff -r 74dc294c789a -r 0eff839c09a2 external/public-domain/tz/dist/Makefile
--- a/external/public-domain/tz/dist/Makefile   Thu Oct 13 11:24:54 2022 +0000
+++ b/external/public-domain/tz/dist/Makefile   Sun Oct 30 01:02:50 2022 +0000
@@ -210,7 +210,8 @@
 #  -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ'
 #  -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows)
 #  -DHAVE_GENERIC=0 if _Generic does not work
-#  -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
+#  -DHAVE_GETRANDOM if getgrandom works (e.g., GNU/Linux)*
+#  -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)*
 #  -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares
 #      ctime_r and asctime_r incompatibly with the POSIX standard
 #      (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined).
@@ -222,16 +223,17 @@
 #  -DHAVE_MALLOC_ERRNO=0 if malloc etc. do not set errno on failure.
 #  -DHAVE_POSIX_DECLS=0 if your system's include files do not declare
 #      functions like 'link' or variables like 'tzname' required by POSIX
+#  -DHAVE_SETENV=0 if your system lacks the setenv function
 #  -DHAVE_SNPRINTF=0 if your system lacks the snprintf function
-#  -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h>
-#  -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h>
+#  -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h>*
 #  -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l
 #  -DHAVE_STRDUP=0 if your system lacks the strdup function
 #  -DHAVE_STRTOLL=0 if your system lacks the strtoll function
 #  -DHAVE_SYMLINK=0 if your system lacks the symlink function
-#  -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h>
+#  -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h>*
 #  -DHAVE_TZSET=0 if your system lacks a tzset function
-#  -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h>
+#  -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h>*
+#  -DHAVE_UTMPX_H=0 if your compiler lacks a <utmpx.h>*
 #  -Dlocale_t=XXX if your system uses XXX instead of locale_t
 #  -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers
 #      with external linkage, e.g., applications cannot define 'localtime'.
@@ -254,14 +256,17 @@
 #      Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
 #  -DZIC_BLOAT_DEFAULT=\"fat\" to default zic's -b option to "fat", and
 #      similarly for "slim".  Fat TZif files work around incompatibilities
-#      and bugs in some TZif readers, notably readers that mishandle 64-bit
-#      data in TZif files.  Slim TZif files are more efficient and do not
-#      work around these incompatibilities and bugs.  If not given, the
-#      default is "slim".
+#      and bugs in some TZif readers, notably older ones that
+#      ignore or otherwise mishandle 64-bit data in TZif files;
+#      however, fat TZif files may trigger bugs in newer TZif readers.
+#      Slim TZif files are more efficient, and are the default.
 #  -DZIC_MAX_ABBR_LEN_WO_WARN=3
 #      (or some other number) to set the maximum time zone abbreviation length
 #      that zic will accept without a warning (the default is 6)
 #  $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking
+#
+# * Options marked "*" can be omitted if your compiler is C23 compatible.
+#
 # Select instrumentation via "make GCC_INSTRUMENT='whatever'".
 GCC_INSTRUMENT = \
   -fsanitize=undefined -fsanitize-address-use-after-scope \
@@ -397,8 +402,9 @@
 
 # To shrink the size of installed TZif files,
 # append "-r @N" to omit data before N-seconds-after-the-Epoch.
-# To grow the files and work around older application bugs, append "-b fat";
-# see ZIC_BLOAT_DEFAULT above.
+# To grow the files and work around bugs in older applications,
+# possibly at the expense of introducing bugs in newer ones,
+# append "-b fat"; see ZIC_BLOAT_DEFAULT above.
 # See the zic man page for more about -b and -r.
 ZFLAGS=
 
@@ -818,13 +824,18 @@
 CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
 
 check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
-               $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu
+               $(AWK) '/^Link/ {printf "%.5d %s\n", g, $$3} /^$$/ {g++}' \
+                 backward | LC_ALL=C sort -cu
                $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu
                touch $@
 
 check_links:   checklinks.awk $(TDATA_TO_CHECK) tzdata.zi
-               $(AWK) -f checklinks.awk $(TDATA_TO_CHECK)
-               $(AWK) -f checklinks.awk tzdata.zi
+               $(AWK) \
+                 -v DATAFORM=$(DATAFORM) \
+                 -f checklinks.awk $(TDATA_TO_CHECK)
+               $(AWK) \
+                 -v DATAFORM=$(DATAFORM) \
+                 -f checklinks.awk tzdata.zi
                touch $@
 
 check_tables:  checktab.awk $(YDATA) backward $(ZONETABLES)
diff -r 74dc294c789a -r 0eff839c09a2 external/public-domain/tz/dist/NEWS
--- a/external/public-domain/tz/dist/NEWS       Thu Oct 13 11:24:54 2022 +0000
+++ b/external/public-domain/tz/dist/NEWS       Sun Oct 30 01:02:50 2022 +0000
@@ -1,5 +1,106 @@
 News for the tz database
 
+Release 2022f - 2022-10-28 18:04:57 -0700
+
+  Briefly:
+    Mexico will no longer observe DST except near the US border.
+    Chihuahua moves to year-round -06 on 2022-10-30.
+    Fiji no longer observes DST.
+    Move links to 'backward'.
+    In vanguard form, GMT is now a Zone and Etc/GMT a link.
+    zic now supports links to links, and vanguard form uses this.
+    Simplify four Ontario zones.
+    Fix a Y2438 bug when reading TZif data.
+    Enable 64-bit time_t on 32-bit glibc platforms.
+    Omit large-file support when no longer needed.
+    In C code, use some C23 features if available.
+    Remove no-longer-needed workaround for Qt bug 53071.
+
+  Changes to future timestamps.
+
+    Mexico will no longer observe DST after 2022, except for areas
+    near the US border that continue to observe US DST rules.
+    On 2022-10-30 at 02:00 the Mexican state of Chihuahua moves
+    from -07 (-06 with DST) to year-round -06, thus not changing
+    its clocks that day.  The new law states that Chihuahua
+    near the US border no longer observes US DST.
+
+    Fiji will not observe DST in 2022/3.  (Thanks to Shalvin Narayan.)
+    For now, assume DST is suspended indefinitely.
+
+  Changes to data
+
+    Move links to 'backward' to ease and simplify link maintenance.
+    This affects generated data only if you use 'make BACKWARD='.
+
+    GMT is now a Zone and Etc/GMT a link instead of vice versa,
+    as GMT is needed for leap second support whereas Etc/GMT is not.
+    However, this change exposes a bug in TZUpdater 2.3.2 so it is
+    present only in vanguard form for now.
+
+    Vanguard form now uses links to links, as zic now supports this.
+
+  Changes to past timestamps
+
+    Simplify four Ontario zones, as most of the post-1970 differences
+    seem to have been imaginary.  (Problem reported by Chris Walton.)
+    Move America/Nipigon, America/Rainy_River, and America/Thunder_Bay
+    to 'backzone'; backward-compatibility links still work, albeit
+    with some different timestamps before November 2005.
+
+  Changes to code
+
+    zic now supports links to links regardless of input line order.
+    For example, if Australia/Sydney is a Zone, the lines
+      Link Australia/Canberra Australia/ACT
+      Link Australia/Sydney Australia/Canberra
+    now work correctly, even though the shell commands
+      ln Australia/Canberra Australia/ACT
+      ln Australia/Sydney Australia/Canberra
+    would fail because the first command attempts to use a link
+    Australia/Canberra that does not exist until after the second
+    command is executed.  Previously, zic had unspecified behavior if
+    a Link line's target was another link, and zic often misbehaved if
+    a Link line's target was a later Link line.
+
+    Fix line number in zic's diagnostic for a link to a link.
+
+    Fix a bug that caused localtime to mishandle timestamps starting
+    in the year 2438 when reading data generated by 'zic -b fat' when
+    distant-future DST transitions occur at times given in standard
+    time or in UT, not the usual case of local time.  This occurs when
+    the corresponding .zi Rule lines specify DST transitions with TO
+    columns of 'max' and AT columns that end in 's' or 'u'.  The
+    number 2438 comes from the 32-bit limit in the year 2038, plus the
+    400-year Gregorian cycle.  (Problem reported by Bradley White.)
+
+    On glibc 2.34 and later, which optionally supports 64-bit time_t
+    on platforms like x86 where time_t was traditionally 32 bits,
+    default time_t to 64 instead of 32 bits.  This lets functions like
+    localtime support timestamps after the year 2038, and fixes
+    year-2038 problems in zic when accessing files dated after 2038.
+    To continue to limit time_t to 32 bits on these platforms, use
+    "make CFLAGS='-D_TIME_BITS=32'".
+
+    In C code, do not enable large-file support on platforms like AIX
+    and macOS that no longer need it now that tzcode does not use
+    off_t or related functions like 'stat'.  Large-file support is
+    still enabled by default on GNU/Linux, as it is needed for 64-bit
+    time_t support.
+
+    In C code, prefer C23 keywords to pre-C23 macros for alignof,
+    bool, false, and true.  Also, use the following C23 features if
+    available: __has_include, unreachable.
+
+    zic no longer works around Qt bug 53071, as the relevant Qt
+    releases have been out of support since 2019.  This change affects
+    only fat TZif files, as thin files never had the workaround.
+
+    zdump no longer modifies the environ vector when compiled on
+    platforms lacking tm_zone or when compiled with -DUSE_LTZ=0.
+    This avoid undefined behavior on POSIX platforms.
+
+
 Release 2022e - 2022-10-11 11:13:02 -0700
 
   Briefly:
diff -r 74dc294c789a -r 0eff839c09a2 external/public-domain/tz/dist/africa
--- a/external/public-domain/tz/dist/africa     Thu Oct 13 11:24:54 2022 +0000
+++ b/external/public-domain/tz/dist/africa     Sun Oct 30 01:02:50 2022 +0000
@@ -178,7 +178,15 @@
 Zone Africa/Brazzaville        1:01:08 -       LMT     1912
                        1:00    -       WAT
 
-# Côte d'Ivoire / Ivory Coast
+# Côte d'Ivoire (Ivory Coast)
+
+# The other parts of the St Helena territory are similar:
+#      Tristan da Cunha: on GMT, say Whitman and the CIA
+#      Ascension: on GMT, say the USNO (1995-12-21) and the CIA
+#      Gough (scientific station since 1955; sealers wintered previously):
+#              on GMT, says the CIA
+#      Inaccessible, Nightingale: uninhabited
+
 # Zone NAME            STDOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -      LMT     1912
                         0:00   -       GMT
@@ -188,6 +196,7 @@
 Zone   Africa/Djibouti 2:52:36 -       LMT     1911 Jul
                        3:00    -       EAT
 
+
 ###############################################################################
 
 # Egypt
@@ -401,13 +410,6 @@
                        2:00    -       SAST
 
 # Ethiopia
-#
-# Unfortunately tzdb records only Western clock time in use in Ethiopia,
-# as the tzdb format is not up to properly recording a common Ethiopian
-# timekeeping practice that is based on solar time.  See:
-# Mortada D. If you have a meeting in Ethiopia, you'd better double
-# check the time. PRI's The World. 2015-01-30 15:15 -05.
-# https://www.pri.org/stories/2015-01-30/if-you-have-meeting-ethiopia-you-better-double-check-time
 # Zone NAME            STDOFF  RULES   FORMAT  [UNTIL]
 Zone Africa/Addis_Ababa        2:34:48 -       LMT     1870
                        2:35:20 -       ADMT    1936 May  5 # Adis Dera MT
@@ -502,6 +504,14 @@
 # The 1908-05-01 announcement does not give an effective date,
 # so just say "1908 May".
 
+# From Paul Eggert (2018-09-11):
+# Unfortunately tzdb records only Western clock time in use in Ethiopia,
+# as the tzdb format is not up to properly recording a common Ethiopian
+# timekeeping practice that is based on solar time.  See:
+# Mortada D. If you have a meeting in Ethiopia, you'd better double
+# check the time. PRI's The World. 2015-01-30 15:15 -05.
+# https://www.pri.org/stories/2015-01-30/if-you-have-meeting-ethiopia-you-better-double-check-time
+
 # Zone NAME            STDOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Nairobi  2:27:16 -       LMT     1908 May
                        2:30    -       +0230   1928 Jun 30 24:00
@@ -724,7 +734,6 @@
                        3:00    -       EAT
 
 # Morocco
-# See Africa/Ceuta for Spanish Morocco.
 
 # From Alex Krivenyshev (2008-05-09):
 # Here is an article that Morocco plan to introduce Daylight Saving Time between
@@ -1225,7 +1234,6 @@
 Zone   Africa/Maputo   2:10:20 -       LMT     1903 Mar
                        2:00    -       CAT
 
-
 # Namibia
 
 # From Arthur David Olson (2017-08-09):
@@ -1393,9 +1401,6 @@
 # Juan de Nova - uninhabited
 # Tromelin - inhabited until at least 1958
 
-#
-# The Crozet Islands also observe Réunion time; see the 'antarctica' file.
-
 # Rwanda
 # Zone NAME            STDOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Kigali   2:00:16 -       LMT     1935 Jun
@@ -1407,13 +1412,6 @@
                        -0:22:48 -      JMT     1951 # Jamestown Mean Time
                         0:00   -       GMT
 
-# The other parts of the St Helena territory are similar:
-#      Tristan da Cunha: on GMT, say Whitman and the CIA
-#      Ascension: on GMT, say the USNO (1995-12-21) and the CIA
-#      Gough (scientific station since 1955; sealers wintered previously):
-#              on GMT, says the CIA
-#      Inaccessible, Nightingale: uninhabited
-
 # São Tomé and Príncipe
 
 # See Europe/Lisbon for info about the 1912 transition.
diff -r 74dc294c789a -r 0eff839c09a2 external/public-domain/tz/dist/antarctica
--- a/external/public-domain/tz/dist/antarctica Thu Oct 13 11:24:54 2022 +0000



Home | Main Index | Thread Index | Old Index