[tz] Proposed update to tz-link.htm for Microsoft Windows

Paul Eggert eggert at cs.ucla.edu
Mon Aug 11 18:59:46 UTC 2014


Thanks for those changes.  I pushed them into the experimental version. 
  After reading them I thought it better to coalesce the two sections 
about Microsoft Windows and trim them down a bit to focus on the tz 
part.  Also, I found a trailing space and this prompted me to improve 
our anomalous white space checking.  So I pushed the attached two 
additional patches as well.
-------------- next part --------------
From bdd2d3331b755450a8c7cb352adf651eaffc3e0c Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert at cs.ucla.edu>
Date: Mon, 11 Aug 2014 11:53:06 -0700
Subject: [PATCH 1/2] * tz-link.htm: Consolidate and tighten up Windows
 description.

* NEWS: Mention Windows-related doc changes.
---
 NEWS        |  4 ++++
 tz-link.htm | 49 +++++++++++++++++++------------------------------
 2 files changed, 23 insertions(+), 30 deletions(-)

diff --git a/NEWS b/NEWS
index cdaf3dd..1b674d9 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,10 @@ Unreleased, experimental changes
 
     Asia/Dakha ended DST on 2009-12-31 at 24:00, not 23:59.
 
+  Changes affecting documentation and commentary
+
+    tz-link.htm describes Windows Runtime etc.  (Thanks to Matt Johnson.)
+
 
 Release 2014f - 2014-08-05 17:42:36 -0700
 
diff --git a/tz-link.htm b/tz-link.htm
index 5a3fa59..77451bd 100644
--- a/tz-link.htm
+++ b/tz-link.htm
@@ -8,7 +8,7 @@
 <meta http-equiv="Content-type" content='text/html; charset="UTF-8"'>
 <meta name="DC.Creator" content="Eggert, Paul">
 <meta name="DC.Contributor" content="Olson, Arthur David">
-<meta name="DC.Date" content="2014-08-05">
+<meta name="DC.Date" content="2014-08-11">
 <meta name="DC.Description"
  content="Sources of information about time zones and daylight saving time">
 <meta name="DC.Identifier"
@@ -232,16 +232,6 @@ and group scheduling systems, and has a <a
 href="http://www.w3.org/2002/12/cal/#tzd">workspace on time zone
 data</a> converted from <code><abbr>tz</abbr></code>. An earlier <a
 href="http://www.w3.org/2000/01/foo">schema</a> was sketched out.</li>
-<li>Starting with Windows 8.1, Microsoft includes <code><abbr>tz</abbr></code>
-and <abbr>CLDR</abbr> data in <abbr>XML</abbr> formatted files,
-found under <code>%WINDIR%\Globalization\Time Zone</code>.  This data is not
-currently used by the Windows operating system itself.  However, it
-is used to support the use of <code><abbr>tz</abbr></code> identifiers in the
-<a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.calendar.aspx"><code>Calendar</code></a>
-and <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.datetimeformatting.datetimeformatter.aspx"><code>DateTimeFormatter</code></a>
-classes of the Windows Runtime.  This enables <code><abbr>tz</abbr></code>
-zones to be used in Windows Store applications and Windows Phone applications
-that target the Windows Runtime.</li>
 </ul>
 <h2>Other <code><abbr>tz</abbr></code> compilers</h2>
 <ul>
@@ -390,6 +380,24 @@ href="http://users.skynet.be/Peter.Verthez/projects/intclock/">International
 clock (intclock)</a> is a clock that displays multiple time zones on
 <abbr>GNU</abbr>/Linux and similar systems. It is freely available
 under the <abbr>GPL</abbr>.</li>
+<li><a href="http://windows.microsoft.com/">Microsoft Windows</a> 8.1
+and later has <code><abbr>tz</abbr></code> data and <abbr>CLDR</abbr>
+data (mentioned below) used by
+<a href="http://en.wikipedia.org/wiki/Windows_Runtime">Windows Runtime</a>
+classes such as <a
+href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.datetimeformatting.datetimeformatter.aspx"><code>DateTimeFormatter</code></a>.
+<a
+href="http://blogs.msdn.com/b/bclteam/archive/2007/06/07/exploring-windows-time-zones-with-system-timezoneinfo-josh-free.aspx">Exploring
+Windows Time Zones with <code>System.TimeZoneInfo</code></a> describes
+the older, proprietary method of Microsoft Windows 2000 and later,
+which stores time zone data in the
+<a href="http://en.wikipedia.org/wiki/Windows_Registry">Windows Registry</a>. The
+<a
+href="http://unicode.org/cldr/charts/supplemental/zone_tzid.html">Zone &rarr;
+Tzid table</a> or <a
+href="http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml"><abbr>XML</abbr>
+file</a> of the <abbr>CLDR</abbr> data maps proprietary zone IDs
+to <code><abbr>tz</abbr></code> names.
 <li><a
 href="http://www.oracle.com/us/technologies/java/overview/index.html">Oracle
 Java</a> contains a copy of a subset of a recent
@@ -430,25 +438,6 @@ Schedules Information Manual</a> of the
 <a href="http://iata.org/">International Air Transport
 Association</a>
 gives current time zone rules for airports served by commercial aviation.</li>
-<li>Since Windows 2000, Microsoft has provided its own time zone data for
-Windows, which is stored in the Windows registry.  Beginning with Windows
-Vista, it was expanded to provide a limited history for some of the zones.
-It is updated periodically by Windows Update, and via hotfixes posted on the
-<a href="http://support.microsoft.com/gp/cp_dst">Microsoft DST support web
-site</a>.  The format for this data is documented with the <a
-href="http://msdn.microsoft.com/en-us/library/ms725481.aspx"><code>TIME_ZONE_INFORMATION</code></a>
-and <a
-href="http://msdn.microsoft.com/en-us/library/ms724253.aspx"><code>DYNAMIC_TIME_ZONE_INFORMTION</code></a>
-structures of the Win32 API.  The data is also exposed by the <a
-href="http://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx"><code>TimeZoneInfo</code></a>
-class of the .NET Framework.  A detailed description of the time zone data
-is provided in <a 
-href="http://blogs.msdn.com/b/bclteam/archive/2007/06/07/exploring-windows-time-zones-with-system-timezoneinfo-josh-free.aspx">this
-MSDN article</a>.  The identifiers of these Windows time zones can be
-mapped back to <code><abbr>tz</abbr></code> values using the
-<a href="http://unicode.org/cldr/charts/supplemental/zone_tzid.html">Zone &rarr; Tzid table</a>,
-or <a href="http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml"><abbr>XML</abbr>
-file</a> from the <abbr>CLDR</abbr> data mentioned below.</li>
 </ul>
 <h2>Maps</h2>
 <ul>
-- 
1.9.1
-------------- next part --------------
From 0512625db75cdfa748ed0c69a9ce8adb478d1386 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert at cs.ucla.edu>
Date: Mon, 11 Aug 2014 08:22:35 -0700
Subject: [PATCH 2/2] Improve checks for white space.

* Makefile (check_white_space): Rename from check_tabs; all uses
changed.  Also check for trailing white space and for oddball
ASCII white space characters.
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e7f24c1..0c3263c 100644
--- a/Makefile
+++ b/Makefile
@@ -449,7 +449,7 @@ tzselect:	tzselect.ksh
 			<$? >$@
 		chmod +x $@
 
-check:		check_character_set check_tabs check_tables check_web
+check:		check_character_set check_white_space check_tables check_web
 
 check_character_set: $(ENCHILADA)
 		LC_ALL=en_US.utf8 && export LC_ALL && \
@@ -463,8 +463,10 @@ check_character_set: $(ENCHILADA)
 			zone1970.tab && \
 		! grep -Env $(VALID_LINE) $(ENCHILADA)
 
-check_tabs: $(ENCHILADA)
+check_white_space: $(ENCHILADA)
 		! grep -n ' '$(TAB_CHAR) $(ENCHILADA)
+		! grep -n '[[:space:]]$$' $(ENCHILADA)
+		! grep -n "$$(printf '[\f\r\v]\n')" $(ENCHILADA)
 
 check_tables:	checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
 		for tab in $(ZONETABLES); do \
-- 
1.9.1


More information about the tz mailing list