Paul Eggert | 27 May 19:12 2015

[tz] [PROPOSED PATCH] tzselect: port to POSIX sh and fix a typo

* tzselect.ksh: Use portable names for trap signals.
Also, fix a typo: signal 2 (INT) was meant, not signal 12.
---
 tzselect.ksh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tzselect.ksh b/tzselect.ksh
index 2a622f5..2c3b2f4 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
 <at>  <at>  -191,7 +191,7  <at>  <at>  done
 	tmp=${TMPDIR-/tmp}/tzselect.$$ &&
 	(umask 77 && mkdir -- "$tmp")
     };} &&
-    trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 1 12 13 15 &&
+    trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 HUP INT PIPE TERM &&
     (iconv -f UTF-8 -t //TRANSLIT <"$TZ_COUNTRY_TABLE" >$tmp/iso3166.tab) \
         2>/dev/null &&
     TZ_COUNTRY_TABLE=$tmp/iso3166.tab &&
--

-- 
2.1.4

Ivars Zagorskis | 24 May 22:40 2015
Picon

Re: [tz] proposed tz change for Latvia, Lithuania

Labdien!
Kur var atrast pilnīgāku DST/LMT laika maiņu Latvijai?

Ar cieņu I. Zagorskis

Arthur David Olson | 19 May 16:18 2015
Picon

[tz] Leap seconds in the news

From the Wall Street Journal: "Markets Are Jumpy Over Coming Leap Second"
http://www.wsj.com/articles/markets-are-jumpy-over-coming-leap-second-1431988248

    <at> dashdashado
Leonardo Chiquitto | 18 May 15:57 2015
Picon

[tz] "zic -l" complains about "empty component" in /etc/localtime

Hello,

With 2015d I can no longer use "zic -l" to recreate /etc/localtime.
I'm getting the following error:

# ./zic -l America/Sao_Paulo
./zic: file name '/etc/localtime' contains empty component

If I comment out the check introduced by commit 0ddac5ef7e
in componentcheck(), then it works fine again:

# ./zic -l America/Sao_Paulo
# ls -lai /etc/localtime
1183669 -rw-r--r-- 5 root root 2015 May 17 20:20 /etc/localtime
# ls -lai /usr/share/zoneinfo/America/Sao_Paulo
1183669 -rw-r--r-- 5 root root 2015 May 17 20:20
/usr/share/zoneinfo/America/Sao_Paulo

A quick analysis: when "/etc/localtime" is passed to namecheck(),
in the first loop iteration componentcheck() will be called with all
three arguments set to "/etc/localtime". A possible fix is to skip
this call to componentcheck() in the first iteration (patch attached).

Leonardo
Attachment (zic-empty-comp.patch): text/x-patch, 384 bytes
Paul Eggert | 15 May 23:34 2015

[tz] [PROPOSED PATCH] Guess Cayman Is will observe DST starting 2016

* NEWS: Document this.
* backzone (America/Cayman): Move from here ...
* northamerica: ... back to here, and assume US-style DST starting 2016.
* zone1970.tab (KY): Now a separate row, since KY and PA disagree
starting 2016.
---
 NEWS         |  5 +++++
 backzone     |  5 -----
 northamerica | 13 +++++++++++--
 zone1970.tab |  3 ++-
 4 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/NEWS b/NEWS
index 392f09b..d69a98c 100644
--- a/NEWS
+++ b/NEWS
 <at>  <at>  -2,6 +2,11  <at>  <at>  News for the tz database

 Unreleased, experimental changes

+  Changes affecting future time stamps
+
+    Assume Cayman Islands will observe DST starting next year, using US rules.
+    Although it isn't guaranteed, it is the most likely.
+
   Changes affecting data format

     The file 'iso3166.tab' now uses UTF-8, so that its entries can better
diff --git a/backzone b/backzone
index 6b392bd..0316708 100644
--- a/backzone
+++ b/backzone
 <at>  <at>  -279,11 +279,6  <at>  <at>  Zone	America/Aruba	-4:40:24 -	LMT	1912 Feb 12 # Oranjestad
 			-4:30	-	ANT	1965 # Netherlands Antilles Time
 			-4:00	-	AST

-# Cayman Is
-Zone	America/Cayman	-5:25:32 -	LMT	1890     # Georgetown
-			-5:07:11 -	KMT	1912 Feb # Kingston Mean Time
-			-5:00	-	EST
-
 # Canada
 Zone America/Coral_Harbour -5:32:40 -	LMT	1884
 			-5:00	NT_YK	E%sT	1946
diff --git a/northamerica b/northamerica
index c3af9eb..88423e6 100644
--- a/northamerica
+++ b/northamerica
 <at>  <at>  -2661,7 +2661,17  <at>  <at>  Zone Atlantic/Bermuda	-4:19:18 -	LMT	1930 Jan  1  2:00 # Hamilton
 			-4:00	US	A%sT

 # Cayman Is
-# See America/Panama.
+
+# From Paul Eggert (2015-05-15):
+# The Cayman government has decided to introduce DST in 2016, the idea being
+# to keep in sync with New York.  The legislation hasn't passed but the change
+# seems quite likely.  See: Meade B. Cayman 27.
+# http://www.cayman27.com.ky/2015/05/15/clock-ticks-toward-daylight-saving-time-in-cayman
+
+Zone	America/Cayman	-5:25:32 -	LMT	1890     # Georgetown
+			-5:07:11 -	KMT	1912 Feb # Kingston Mean Time
+			-5:00	-	EST	2016
+			-5:00	US	E%sT

 # Costa Rica

 <at>  <at>  -3184,7 +3194,6  <at>  <at>  Zone	America/Managua	-5:45:08 -	LMT	1890
 Zone	America/Panama	-5:18:08 -	LMT	1890
 			-5:19:36 -	CMT	1908 Apr 22 # Colón Mean Time
 			-5:00	-	EST
-Link America/Panama America/Cayman

 # Puerto Rico
 # There are too many San Juans elsewhere, so we'll use 'Puerto_Rico'.
diff --git a/zone1970.tab b/zone1970.tab
index 5da0200..2689c00 100644
--- a/zone1970.tab
+++ b/zone1970.tab
 <at>  <at>  -206,6 +206,7  <at>  <at>  KI	-0308-17105	Pacific/Enderbury	Phoenix Islands
 KI	+0152-15720	Pacific/Kiritimati	Line Islands
 KP	+3901+12545	Asia/Pyongyang
 KR	+3733+12658	Asia/Seoul
+KY	+1918-08123	America/Cayman
 KZ	+4315+07657	Asia/Almaty	most locations
 KZ	+4448+06528	Asia/Qyzylorda	Qyzylorda (Kyzylorda, Kzyl-Orda)
 KZ	+5017+05710	Asia/Aqtobe	Aqtobe (Aktobe)
 <at>  <at>  -259,7 +260,7  <at>  <at>  NR	-0031+16655	Pacific/Nauru
 NU	-1901-16955	Pacific/Niue
 NZ,AQ	-3652+17446	Pacific/Auckland	New Zealand time
 NZ	-4357-17633	Pacific/Chatham	Chatham Islands
-PA,KY	+0858-07932	America/Panama
+PA	+0858-07932	America/Panama
 PE	-1203-07703	America/Lima
 PF	-1732-14934	Pacific/Tahiti	Society Islands
 PF	-0900-13930	Pacific/Marquesas	Marquesas Islands
--

-- 
2.1.0

Avila, Edgar | 14 May 22:20 2015

[tz] Question about IANA time zone names

Hi, I’m a software engineer working on the data modeling group. We are trying to figure out how the IANA time zone names can be described on our message model. At the modem it seems that the time zone names such as America/Costa_Rica or Japan are just a string without restrictions. We wonder whether there is a restriction such as maximum length of characters, pattern of characters to allow, etc.

 

One more question, is it really America/Costa_Rica or Japan a name or an ID?

 

The following is the description we have today in one of our schemas:

 

   <xs:simpleType name="IANATimeZoneId_Type">

        <xs:annotation>

            <xs:documentation>

                Timezone Id represented by IANA.

            </xs:documentation>

        </xs:annotation>

        <xs:restriction base="xs:string"/>

    </xs:simpleType>

 

 

Thanks in advance


This email message and any attachments may contain confidential, proprietary or non-public information. The information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this email, please notify the sender immediately and destroy this email. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this email are those of the author personally.
Suzana Ferreira | 13 May 12:28 2015
Picon

[tz] Time Zone Database from Portugal

Hi,
Where can I see information about Time Zone Database related to Portugal 
in your site?http://www.iana.org/time-zones

http://tools.ietf.org/html/rfc6557

Thank you,

--

-- 

Suzana Ferreira, Astrónoma

*********************************************
Observatório Astronómico de Lisboa (OAL)
-------------- desde 1861 --------------

Edifício Leste, Tapada da Ajuda,
PT-1349-018 LISBOA, PORTUGAL
tel: (351) 213616734 / fax: (351) 213616750
www.oal.ul.pt
*********************************************

moxhull | 14 May 18:52 2015
Picon

[tz] Time Zones - Canary Islands - Offshore Spain - Error

Dear Paul Eggert,

I use software which sources your data in github for time zones.

The Canary Islands, located off the coast of Morocco, belong to Spain but have a different time zone. It's causing me problems because it seems your files do not take account of this.

Would you kindly amend your files accordingly, please, so that my software programmer can use an updated file, so in turn I can use his software?

Please see below for references.

Many thanks indeed, so grateful.

Yours sincerely,

Sylvie







---------- Forwarded message ----------
From: Anatoly Zaytsev <astrozet <at> gmail.com>
Date: Thu, May 14, 2015 at 5:41 PM
Subject: Re: Zet 8 Geo, time zones
To: moxhull <moxhull <at> gmail.com>


Hello Sylvie,

1) This is not so important.

2) I use more (seems) relevant source: https://github.com/eggert/tz Paul Eggert tz-bounces <at> iana.org
also https://github.com/eggert/tz/blob/master/europe line 2922
Please talk with him.

-----------------
Anatoly Zaytsev
www.astrozet.com


----- Original Message ----- From: "moxhull" <moxhull <at> gmail.com>
To: <astrozet <at> gmail.com>
Sent: Thursday, May 14, 2015 7:02 PM
Subject: Zet 8 Geo, time zones


Dear Anatoly,

I hope you are well. I write for two items:

- I have retired from my job in Geneva (Switzerland), sold my house in
France, and I have moved to the Canary Islands, a part of Spain that is off
the coast of Morocco. So my addresses, email and telephone number need to
be changed in your records - see below.

- The Canary Islands do not use the same time as mainland Spain, so I'm
having trouble with the time changes. I tried to make a few modifications
in my Zet but I do not know enough and did not succeed. Please would make
the corrections in the time zone files and make them available? For
reference see:
http://en.wikipedia.org/wiki/Time_in_Spain#The_Canary_Islands_exception

Thank you very much for correcting this.

Kind regards,

Sylvie Weber
Calle Aceviño 49
Ed. Tarahal, Apto 201
38400 Puerto de la Cruz, Tenerife
Spain

Tel. +34 674 80 18 34
email: moxhull <at> gmail.com

[image: Inline image 1]


Owen Leibman | 11 May 07:44 2015
Picon

[tz] Problem with tzselect and Dominica

Using a freshly downloaded version of tzelect, and choosing 2 (Americas)
followed by 18 (Dominica), the following results:
./tzselect: line 469: /usr/share/zoneinfo/
America/Port_of_Spain: No such file or directory
./tzselect: time zone files are not set up correctly

I believe that is because Dominica's abbreviation (DM) is actually found in
some comments near the head of the file. To avoid this problem, I believe he
awk statement at line 463:
$1 ~ cc && $4 == region { print $3 }
needs to be changed thus to exclude comment lines:
$0 !~ /^#/ && $1 ~ cc && $4 == region { print $3 }

Paul Eggert | 8 May 23:31 2015

[tz] [PROPOSED PATCH 1/2] Prefer '$(MAKE)' to 'make'

* Makefile (check_public, check_time_t_alternatives)
(typecheck): Use '$(MAKE)' instead of 'make'.
This has better behavior with GNU 'make' and -j.
---
 Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 6f70979..8d624bc 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -324,6 +324,8  <at>  <at>  GZIPFLAGS=	-9n

 ###############################################################################

+#MAKE=		make
+
 cc=		cc
 CC=		$(cc) -DTZDIR=\"$(TZDIR)\"

 <at>  <at>  -572,8 +574,8  <at>  <at>  set-timestamps.out: $(ENCHILADA)
 # We also do an all-files run to catch links to links.

 check_public:	$(ENCHILADA)
-		make maintainer-clean
-		make "CFLAGS=$(GCC_DEBUG_FLAGS)" $(ENCHILADA) all
+		$(MAKE) maintainer-clean
+		$(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" $(ENCHILADA) all
 		mkdir tzpublic
 		for i in $(TDATA) ; do \
 		  $(zic) -v -d tzpublic $$i 2>&1 || exit; \
 <at>  <at>  -592,8 +594,8  <at>  <at>  check_time_t_alternatives:
 		zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
 		for type in $(TIME_T_ALTERNATIVES); do \
 		  mkdir -p tzpublic/$$type && \
-		  make clean_misc && \
-		  make TOPDIR=`pwd`/tzpublic/$$type \
+		  $(MAKE) clean_misc && \
+		  $(MAKE) TOPDIR=`pwd`/tzpublic/$$type \
 		    CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
 		    REDO='$(REDO)' \
 		    install && \
 <at>  <at>  -639,12 +641,12  <at>  <at>  tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
 		gpg --armor --detach-sign $?

 typecheck:
-		make clean
+		$(MAKE) clean
 		for i in "long long" unsigned; \
 		do \
-			make CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
+			$(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
 			./zdump -v Europe/Rome ; \
-			make clean ; \
+			$(MAKE) clean ; \
 		done

 zonenames:	$(TDATA)
--

-- 
2.1.0

Paul Eggert | 3 May 08:25 2015

[tz] [PROPOSED PATCH 1/3] Remove hair from southamerica comment

While using the tz source to test some other program I found an
unwanted hair space (U+200A) in the commentary.  Fix this, and
adjust Makefile to catch this sort of thing in the future.
* Makefile (SAFE_CHARSET): Exclude ] and -, as they're now the
invoker's responsibility.  Invoker changed.
(NONSYM_CHAR): Remove, replacing with ...
(OK_CHAR): ... this new macro.  All uses changed.
(NONSYM_LINE, VALID_LINE): Remove, replacing with ...
(OK_LINE): ... this new macro.  All uses changed.
(check_character_set): Simplify test, and report all non-ASCII
non-letters.  Remove the exception for Makefile, as it no longer
needs to contain non-OK characters.
* southamerica: Replace an inadvertent hair space with a space.
---
 Makefile     | 30 ++++++++++++++----------------
 southamerica |  2 +-
 2 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/Makefile b/Makefile
index b398727..c3b23c8 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -292,23 +292,24  <at>  <at>  TAB_CHAR=	'	'
 SAFE_CHARSET1=	$(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>? <at> '
 SAFE_CHARSET2=	'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`'
 SAFE_CHARSET3=	'abcdefghijklmnopqrstuvwxyz{|}~'
-SAFE_CHARSET=	]$(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3)-
-SAFE_CHAR=	'['$(SAFE_CHARSET)']'
-# NONSYM_CHAR is a regular expression that matches any character
-# except for a small number of symbols, where we prefer to stick with
+SAFE_CHARSET=	$(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3)
+SAFE_CHAR=	'[]'$(SAFE_CHARSET)'-]'
+
+# OK_CHAR matches any character allowed in the distributed files.
+# This is the same as SAFE_CHAR, except that multibyte letters are
+# also allowed so that commentary can contain people's names and quote
+# non-English sources.  For non-letters the sources are limited to
 # ASCII renderings for the convenience of maintainers whose text editors
 # mishandle UTF-8 by default (e.g., XEmacs 21.4.22).
-NONSYM_CHAR=	'[^–—°′″≈≠≤≥±−×÷∞←→↔·•§¶«»‘’‚‛“”„‟‹›「」『』〝〞〟]'
+OK_CHAR=	'[][:alpha:]'$(SAFE_CHARSET)'-]'

 # SAFE_LINE matches a line of safe characters.
-# SAFE_SHARP_LINE is similar, except any character can follow '#';
+# SAFE_SHARP_LINE is similar, except any OK character can follow '#';
 # this is so that comments can contain non-ASCII characters.
-# NONSYM_LINE matches a line of non-symbols.
-# VALID_LINE matches a line of any validly-encoded characters.
+# OK_LINE matches a line of OK characters.
 SAFE_LINE=	'^'$(SAFE_CHAR)'*$$'
-SAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(NONSYM_CHAR)'*)?$$'
-NONSYM_LINE=	'^'$(NONSYM_CHAR)'*$$'
-VALID_LINE=	'^.*$$'
+SAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$'
+OK_LINE=	'^'$(OK_CHAR)'*$$'

 # Flags to give 'tar' when making a distribution.
 # Try to use flags appropriate for GNU tar.
 <at>  <at>  -475,14 +476,11  <at>  <at>  check:		check_character_set check_white_space check_links check_sorted \
 check_character_set: $(ENCHILADA)
 		LC_ALL=en_US.utf8 && export LC_ALL && \
 		sharp='#' && \
-		! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \
+		! grep -Env $(SAFE_LINE) Makefile $(MANS) date.1 $(MANTXTS) \
 			$(MISC) $(SOURCES) $(WEB_PAGES) && \
 		! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
 			iso3166.tab leapseconds yearistype.sh zone.tab && \
-		test $$(grep -Ecv $(SAFE_SHARP_LINE) Makefile) -eq 1 && \
-		! grep -Env $(NONSYM_LINE) CONTRIBUTING NEWS README Theory \
-			$(MANS) date.1 zone1970.tab && \
-		! grep -Env $(VALID_LINE) $(ENCHILADA)
+		! grep -Env $(OK_LINE) $(ENCHILADA)

 check_white_space: $(ENCHILADA)
 		! grep -En ' '$(TAB_CHAR)"|$$(printf '[\f\r\v]')" $(ENCHILADA)
diff --git a/southamerica b/southamerica
index be63a88..6bbc2c8 100644
--- a/southamerica
+++ b/southamerica
 <at>  <at>  -30,7 +30,7  <at>  <at> 
 #	I suggest the use of _Summer time_ instead of the more cumbersome
 #	_daylight-saving time_.  _Summer time_ seems to be in general use
 #	in Europe and South America.
-#	-- E O Cutler, _New York Times_ (1937-02-14), quoted in
+#	-- E O Cutler, _New York Times_ (1937-02-14), quoted in
 #	H L Mencken, _The American Language: Supplement I_ (1960), p 466
 #
 # Earlier editions of these tables also used the North American style
--

-- 
2.1.4


Gmane