[tz] [PATCH 2/2] Bump tzfile format to version 3.

Paul Eggert eggert at cs.ucla.edu
Tue Sep 10 20:16:52 UTC 2013


Nathan Stratton Treadway wrote:
> I noticed a small typo in this patch:

Thanks, plus I forgot to document the version-3 stuff there.
It is a pain that this stuff is documented redundantly in
two places, but perhaps now's not the best time to change this.
I pushed this:

>From 8dada0cec8b5fbfa42748e66fc7bce06f32795aa Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert at cs.ucla.edu>
Date: Tue, 10 Sep 2013 13:15:22 -0700
Subject: [PATCH] * tzfile.h: Fix tzfile.h comment.

Spelling problem reported by Nathan Stratton Treadway in
<http://mm.icann.org/pipermail/tz/2013-September/020121.html>.
---
 tzfile.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tzfile.h b/tzfile.h
index 63db98e..233563c 100644
--- a/tzfile.h
+++ b/tzfile.h
@@ -83,12 +83,18 @@ struct tzhead {
 ** (with nothing between the newlines if there is no POSIX representation for
 ** such instants).
 **
-** If tz_version is '3' or greatar, the above is extended as follows.
+** If tz_version is '3' or greater, the above is extended as follows.
 ** First, the POSIX TZ string's hour offset may range from -167
 ** through 167 as compared to the POSIX-required 0 through 24.
 ** Second, its DST start time may be January 1 at 00:00 and its stop
 ** time December 31 at 24:00 plus the difference between DST and
 ** standard time, indicating DST all year.
+** Third, the newline-enclosed TZ string is preceded by a new section
+** consisting of another copy of the string, followed by a four-byte
+** integer size value, followed by zero or more NUL-terminated
+** name=value byte strings, followed by an additional NUL.  The size
+** value gives the total size of the name=value byte strings,
+** including their terminating NUL bytes, but excluding the additional NUL.
 */
 
 /*
-- 
1.8.1.2




More information about the tz mailing list