Paul Eggert | 27 Aug 01:02 2014

[tz] [PROPOSED PATCH] * backzone: Spelling and accent fixes.

---
 backzone | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/backzone b/backzone
index 66d3e27..d9183cd 100644
--- a/backzone
+++ b/backzone
 <at>  <at>  -81,7 +81,7  <at>  <at>  Zone	Africa/Douala	0:38:48	-	LMT	1912
 # The following table is from Shanks & Pottenger, but it can't be right.
 # Whitman gives Mar 31 - Aug 31 for 1931 on.
 # The International Hydrographic Bulletin, 1932-33, p 63 says that
-# Sierra Leone would advance its clocks by 20 monutes on 1933-10-01.
+# Sierra Leone would advance its clocks by 20 minutes on 1933-10-01.
 # Rule	NAME	FROM	TO	TYPE	IN	ON	AT	SAVE	LETTER/S
 Rule	SL	1935	1942	-	Jun	 1	0:00	0:40	SLST
 Rule	SL	1935	1942	-	Oct	 1	0:00	0	WAT
 <at>  <at>  -210,7 +210,7  <at>  <at>  Zone	America/Grenada	-4:07:00 -	LMT	1911 Jul # St George's
 			-4:00	-	AST

 # Guadeloupe
-Zone America/Guadeloupe	-4:06:08 -	LMT	1911 Jun  8 # Pointe a Pitre
+Zone America/Guadeloupe	-4:06:08 -	LMT	1911 Jun  8 # Pointe-à-Pitre
 			-4:00	 -	AST

 # Montserrat
 <at>  <at>  -223,7 +223,7  <at>  <at>  Zone America/Montserrat	-4:08:52 -	LMT	1911 Jul  1  0:01 # Cork Hill
 # Argentina
 # This entry was intended for the following areas, but has been superseded by
 # more detailed zones.
(Continue reading)

Paul Eggert | 27 Aug 03:44 2014

[tz] DST ended 14 hours early for one British clock in fall 1916

The online Wall Street Journal has a World War I Centenary series, and 
its Daylight-Saving Time page has a photo captioned "A notice informs 
the British public of a change in time as clocks go back an hour in the 
first year of daylight saving on Oct. 1, 1916. Topical Press 
Agency/Getty Images".

The interesting thing about the notice is that its transition is off by 
14 hours compared to our data.  The notice is under a large outdoor 
hanging clock and says "CHANGE OF TIME. AT 1 P.M. SEPT 30th THIS CLOCK 
WILL BE SET BACK ONE HOUR TO GREENWICH TIME".  Perhaps the clock's 
operator didn't want to bother changing the clock at the official 
transition time of 3 A.M. the next day.

Fidler S. Daylight-saving time. Wall Street Journal. 
http://online.wsj.com/ww1/daylight-saving-time

Paul Eggert | 27 Aug 03:51 2014

[tz] [PROPOSED PATCH 1/3] * tz-art.htm: Correct the Peanuts quote.

Fix broken links and remove a broken-linked book that wasn't
that notable anyway.  Use italics for book and movie titles.
---
 tz-art.htm | 92 +++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

diff --git a/tz-art.htm b/tz-art.htm
index fd56728..ef06675 100644
--- a/tz-art.htm
+++ b/tz-art.htm
 <at>  <at>  -277,8 +277,8  <at>  <at>  savings days. Lousy farmers."</td></tr>
 <tr><td>&nbsp;</td></tr>

 <tr><td>Artist</td><td>Jules Verne</td></tr>
-<tr><td>Book</td><td>Le Tour du Monde en Quatre-Vingts Jours
-(Around the World in Eighty Days)</td></tr>
+<tr><td>Book</td><td><em>Around the World in Eighty Days</em>
+(<em>Le tour du monde en quatre-vingts jours</em>)</td></tr>
 <tr><td>Notes</td><td>Wall-clock time plays a central role in the plot.
 European readers of the 1870s clearly held the U.S. press in
 deep contempt; the protagonists cross the U.S. without once
 <at>  <at>  -292,8 +292,8  <at>  <at>  An on-line English-language translation of the book is available at

 <tr><td>&nbsp;</td></tr>
 <tr><td>Artist</td><td>Umberto Eco</td></tr>
-<tr><td>Book</td><td>The Island of the Day Before
-(L'isola del giorno prima)</td></tr>
+<tr><td>Book</td><td><em>The Island of the Day Before</em>
+(<em>L'isola del giorno prima</em>)</td></tr>
 <tr><td>Copyright Date</td><td>1994</td></tr>
(Continue reading)

Tim Parenti | 26 Aug 23:44 2014

[tz] Typo fix

The attached patch fixes a typo in NEWS which I introduced a while back.

-- 
Tim Parenti

From 8ab9c42ad93e00017140362a1c3891d4d0fa8ffd Mon Sep 17 00:00:00 2001
From: Tim Parenti <tim <at> timtimeonline.com>
Date: Tue, 26 Aug 2014 17:33:05 -0400
Subject: * NEWS: Typo fix.

---
 NEWS |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index 68d0ae3..fcb79a3 100644
--- a/NEWS
+++ b/NEWS
 <at>  <at>  -22,7 +22,7  <at>  <at>  Unreleased, experimental changes
     GMT offset was -0:36:45 (rounded from -0:36:44.68), not -0:36:32.
     (Thanks to Stephen Colebourne for pointing to the decree.)

-    Asia/Dakha ended DST on 2009-12-31 at 24:00, not 23:59.
+    Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.

     A new file 'backzone' contains data which may appeal to
     connoisseurs of old time stamps, although it is out of scope for
--

-- 
(Continue reading)

Paul Eggert | 26 Aug 20:22 2014

[tz] [PROPOSED PATCH] localtime.c: two minor 'bool' cleanups

These don't fix any bugs, but make the recently-introduced 'bool'
code easier to follow.
* localtime.c (gmtcheck): Move gmt_is_set's definition here,
since it's used only here.
(localtime_r): Explicitly convert integer to boolean rather
than relying on C99 semantics.
---
 localtime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/localtime.c b/localtime.c
index d5fd508..aee343e 100644
--- a/localtime.c
+++ b/localtime.c
 <at>  <at>  -177,7 +177,6  <at>  <at>  static struct state	gmtmem;

 static char		lcl_TZname[TZ_STRLEN_MAX + 1];
 static int VOLATILE	lcl_is_set;
-static bool VOLATILE	gmt_is_set;

 char *			tzname[2] = {
 	(char *) wildabbr,
 <at>  <at>  -1262,6 +1261,7  <at>  <at>  tzset(void)
 static void
 gmtcheck(void)
 {
+  static bool VOLATILE gmt_is_set;
   if (gmt_is_set)
     return;
   if (lock() != 0)
(Continue reading)

Paul Eggert | 26 Aug 10:33 2014

[tz] [PROPOSED PATCH] * NEWS: Coalesce discussions of zdump, localtime_rz, and localtime_r.

---
 NEWS | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index 8302547..b031a32 100644
--- a/NEWS
+++ b/NEWS
 <at>  <at>  -52,10 +52,6  <at>  <at>  Unreleased, experimental changes
     Although not needed for tz's own applications, which are single-threaded,
     this supports POSIX better if the tz library is used in multithreaded apps.

-    zdump now uses localtime_r and tzset if available, as this is a
-    bit cleaner and faster than plain localtime.  Compile with
-    -DHAVE_LOCALTIME_R=0 and/or -DHAVE_TZSET=0 if your system lacks them.
-
     Unless NETBSD_INSPIRED is defined to 0, the tz library now supplies
     functions that let callers create and use objects representing time zones.
     This is intended for applications that need to deal with many time
 <at>  <at>  -89,7 +85,11  <at>  <at>  Unreleased, experimental changes

     zdump now uses localtime_rz if available, as it's significantly faster.
     Define HAVE_LOCALTIME_RZ to 0 to suppress this.  HAVE_LOCALTIME_TZ
-    defaults to 1 if NETBSD_INSPIRED && USE_LTZ.
+    defaults to 1 if NETBSD_INSPIRED && USE_LTZ.  When localtime_rz is
+    not available, zdump now uses localtime_r and tzset if available,
+    as this is a bit cleaner and faster than plain localtime.  Compile
+    with -DHAVE_LOCALTIME_R=0 and/or -DHAVE_TZSET=0 if your system
+    lacks these two functions.

(Continue reading)

Paul Eggert | 26 Aug 10:34 2014

[tz] 2014g soon

It's time for a new tz release: we have one change to near-future data 
(for the Turks & Caicos) that should go out sooner rather than later, 
and there've been several changes to the code as well.  To help simplify 
reviewing I've pushed an integrated version of the proposed changes to 
<https://github.com/eggert/tz>, and you can read the news here:

https://github.com/eggert/tz/blob/master/NEWS

Paul Eggert | 26 Aug 02:16 2014

[tz] [PROPOSED PATCH 1/3] Port 'make check_time_t_alternatives' to Solaris 10.

* Makefile (check_time_t_alternatives): Don't assume 'diff'
has the -q option, since POSIX does not require -q.
* NEWS: Document this.
---
 Makefile | 9 ++++++++-
 NEWS     | 2 ++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0fc8e2c..92fad4d 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -569,6 +569,11  <at>  <at>  check_public:	$(ENCHILADA)
 # Check that the code works under various alternative
 # implementations of time_t.
 check_time_t_alternatives:
+		if diff -q Makefile Makefile 2>/dev/null; then \
+		  quiet_option='-q'; \
+		else \
+		  quiet_option=''; \
+		fi && \
 		zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
 		for type in $(TIME_T_ALTERNATIVES); do \
 		  mkdir -p tzpublic/$$type && \
 <at>  <at>  -577,7 +582,9  <at>  <at>  check_time_t_alternatives:
 		    CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
 		    REDO='$(REDO)' \
 		    install && \
-		  diff -qr tzpublic/int64_t/etc/zoneinfo tzpublic/$$type/etc/zoneinfo && \
+		  diff $$quiet_option -r \
(Continue reading)

Paul Eggert | 26 Aug 07:01 2014

[tz] [PROPOSED PATCH] * Makefile, NEWS: Say that backzone's contents are not all low-quality

and give credit to Lester Caine for some of its high-quality entries.
---
 Makefile | 4 ++--
 NEWS     | 9 +++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 2354a3f..8ccbaf4 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -84,8 +84,8  <at>  <at>  LIBDIR=		$(TOPDIR)/lib
 # below.  If you want both sets of data available, with leap seconds counted
 # normally, use
 #	REDO=		right_posix
-# below.  If you want just POSIX-compatible time values, but with extra
-# lower-quality data from the file 'backzone', use
+# below.  If you want just POSIX-compatible time values, but with
+# out-of-scope and often-wrong data from the file 'backzone', use
 #	REDO=		posix_packrat
 # POSIX mandates that leap seconds not be counted; for compatibility with it,
 # use "posix_only", "posix_right", or "posix_packrat".
diff --git a/NEWS b/NEWS
index 3c8b84b..8302547 100644
--- a/NEWS
+++ b/NEWS
 <at>  <at>  -26,10 +26,11  <at>  <at>  Unreleased, experimental changes

     A new file 'backzone' contains data which may appeal to
     connoisseurs of old time stamps, although it is out of scope for
-    the tz database and is often poorly sourced.  The new file is not
(Continue reading)

Paul Eggert | 26 Aug 04:42 2014

[tz] [PROPOSED PATCH] Port 'bool' usage to clang 3.4.

* date.c (convert, reset):
Fix prototype to match function, as the C standard requires.
---
 date.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/date.c b/date.c
index 3b44c94..b77de79 100644
--- a/date.c
+++ b/date.c
 <at>  <at>  -55,14 +55,14  <at>  <at>  extern char *		tzname[2];
 static int		retval = EXIT_SUCCESS;

 static void		checkfinal(char const *, bool, time_t, time_t);
-static time_t		convert(const char *, int, time_t);
+static time_t		convert(const char *, bool, time_t);
 static void		display(const char *, time_t);
 static void		dogmt(void);
 static void		errensure(void);
 static void		iffy(time_t, time_t, const char *, const char *);
 static const char *	nondigit(const char *);
 static void		oops(const char *);
-static void		reset(time_t, int);
+static void		reset(time_t, bool);
 static void		timeout(FILE *, const char *, const struct tm *);
 static void		usage(void);
 static void		wildinput(const char *, const char *,
--

-- 
1.9.1

(Continue reading)

Paul Eggert | 23 Aug 04:50 2014

[tz] [PROPOSED PATCH] * Makefile (TZDOBJS): Remove ialloc.o.

* NEWS: Document this.
---
 Makefile | 2 +-
 NEWS     | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 99d2826..09f614c 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -305,7 +305,7  <at>  <at>  AR=		ar
 RANLIB=		:

 TZCOBJS=	zic.o scheck.o ialloc.o
-TZDOBJS=	zdump.o localtime.o ialloc.o asctime.o
+TZDOBJS=	zdump.o localtime.o asctime.o
 DATEOBJS=	date.o localtime.o strftime.o asctime.o
 LIBSRCS=	localtime.c asctime.c difftime.c
 LIBOBJS=	localtime.o asctime.o difftime.o
diff --git a/NEWS b/NEWS
index 7f15887..66891df 100644
--- a/NEWS
+++ b/NEWS
 <at>  <at>  -71,6 +71,10  <at>  <at>  Unreleased, experimental changes

     The long-obsolete 'gtime' function has been removed.

+  Changes affecting build procedure
+
+    'zdump' no longer links in ialloc.o, as it's not needed.
(Continue reading)


Gmane