1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 20:29:22 +00:00
Commit Graph

3565 Commits

Author SHA1 Message Date
Arthur David Olson
606a29b20f * tz-art.htm: Correct the description of "The Mysterious Cube". 2014-11-29 20:52:02 -08:00
Paul Eggert
7552a09780 * NEWS: Mention tzselect fix for POSIX TZ reporting. 2014-11-26 11:36:03 -08:00
Stefan Kuhn
276f85ddd2 tzselect: Display Posix TZ format when used 2014-11-26 11:34:32 -08:00
Paul Eggert
72272febcb Move out-of-scope Arabian peninsula zones to 'backzone'.
* asia (Asia/Bahrain): Now links to Asia/Qatar.
(Asia/Kuwait, Asia/Aden): Now links to Asia/Riyadh.
(Asia/Muscat): Now links to Asia/Dubai.
* backzone: Move the old data here.
* checktab.awk (tztab): Remove special cases for these zones.
* NEWS: Document the above.
2014-11-25 23:04:34 -08:00
Paul Eggert
1c5204b450 * NEWS: Document POSIX awk fixes. 2014-11-25 12:08:03 -08:00
Stefan Kuhn
27bd92aec3 tzselect: Removed spaces in calls to awk-functions
Explanation:
GNU awk fails when a user-defined-functions is called with a space like in
'myUDF ()'. It does not fail when calling builtin functions, but removed
those spaces too.

Example code:
good_awk='function echo(x) { return x; } BEGIN { print echo("x"); }'
bad_awk_='function echo(x) { return x; } BEGIN { print echo ("x"); }'
sin_awk='BEGIN { print sin (0) }'

mawk -W version 2>/dev/null | head -n1
mawk "${sin_awk}"
mawk "${good_awk}"
mawk "${bad_awk_}"
gawk -V | head -n1
gawk "${sin_awk}"
gawk "${good_awk}"
gawk "${bad_awk_}"

Output:
mawk 1.3.4 20141027
0
x
x
GNU Awk 4.0.2
0
x
gawk: cmd. line:1: error: function `echo' called with space between name
and `(',
2014-11-25 12:02:44 -08:00
Tim Parenti
38e46697d8 * europe (Iceland): Typo fix in commentary. 2014-11-23 20:48:00 -08:00
Paul Eggert
db4950669a * NEWS: Fix misspelling. (Thanks to Chris Rorvick.) 2014-11-23 20:38:10 -08:00
Paul Eggert
ff5b82b07b Adjust pre-1940 Iceland data to match the Iceland Almanak.
* europe (Iceland, Atlantic/Reykjavik):
Correct entries for 1939, 1921, 1919, and 1837-1907.
Coalesce some other entries, for simplicity.
* NEWS: Document this.
2014-11-22 20:08:43 -08:00
Stefan Kuhn
66cda43f67 tzselect: Fix for gawk treating '\.' as plain '.'
When using gawk and Posix TZ in tzselect, this warning is shown:
	awk: cmd. line:1: warning: escape sequence `\.' treated as plain `.'
gawk treats '\.' as '.'
mawk treats '\.' as '\.'
both treat '\\.' as '\\.'
The 2nd and 3rd are corrrect for 'Mm.w.d'.

Test:
gawk 'BEGIN{ date = "\."; print date }'
gawk 'BEGIN{ date = "\\."; print date }'
versus:
mawk 'BEGIN{ date = "\."; print date }'
mawk 'BEGIN{ date = "\\."; print date }'
* tzselect.ksh (date): Fix bug that broke POSIX TZ checking with gawk.
* NEWS: Document this.
2014-11-22 16:57:41 -08:00
Paul Eggert
eb7519100e Fix link-to-link for Asmera.
Problem reported by Stephen Colebourne in:
http://mm.icann.org/pipermail/tz/2014-November/021888.html
* backward (Africa/Asmera): Link to Africa/Nairobi,
not to Africa/Asmara.
* backzone (Africa/Asmera): New link, to override 'backward'.
* NEWS: Document fixes.
2014-11-17 11:36:35 -08:00
Paul Eggert
2dc5286b28 Check for links to links.
This problem has come up before, and it's time to add a check to
catch this common error.
* Makefile (AWK_SCRIPTS): Add checklinks.awk.
(check, .PHONY): Add check_links.
(check_links): New rule.
* checklinks.awk: New file.
2014-11-17 11:31:40 -08:00
Paul Eggert
da5a36565c tzalloc should scrub abbreviations, compatibly with tzset.
* localtime.c (settzname): Move scrubbing into ...
(scrub_abbrs): ... this new function.
(zoneinit): Use it here, rather than in settzname.
* NEWS: Document this.
2014-11-11 14:53:26 -08:00
Paul Eggert
0965ee56d1 Refactor to centralize the setting of tzname.
See Christos Zoulas in:
http://mm.icann.org/pipermail/tz/2014-November/021881.html
* localtime.c (update_tzname_etc): New function.
(settzname, localsub): Use it.
(localsub): Rename parameter for clarity.
2014-11-11 14:35:33 -08:00
Paul Eggert
59ed0cc5b8 Release tzcode2014j and tzdata2014j.
* NEWS, Makefile (VERSION): Increase to 2014j.
2014j
2014-11-10 17:38:21 -08:00
Paul Eggert
49869e1691 * tz-link.htm: Modernize some more URLs. 2014-11-09 14:51:14 -08:00
Paul Eggert
f0447443ed * europe (Russia): Say why no rule change is needed for 2014. 2014-11-06 12:08:13 -08:00
Paul Eggert
e72a94ecd8 * northamerica (America/Grand_Turk): Delay AST switch until next year.
(Thanks to Chris Walton.)
* NEWS: Document this.
2014-11-04 12:15:59 -08:00
Paul Eggert
60b8123df6 * tz-link.htm: Modernize URLs a bit. Omit unnecessary trailing slashes. 2014-11-02 23:37:41 -08:00
Paul Eggert
4aa3b781af Fix dates for yesterday's changes. 2014-11-01 00:35:42 -07:00
Paul Eggert
abc78b2de0 * europe: Add Countess Markievicz's take on the Summer Time Act, 1916. 2014-10-31 23:31:37 -07:00
Paul Eggert
6f6f20f0bc Move out-of-scope UTC+3 African zones to 'backzone'.
* africa (Africa/Addis_Ababa, Africa/Asmara, Africa/Dar_es_Salaam)
(Africa/Djibouti, Africa/Kampala, Africa/Mogadishu, Indian/Antananarivo)
(Indian/Comoro, Indian/Mayotte):
Change these from zones to links to Africa/Nairobi.
* backzone: Move the old data here.
* checktab.awk (tztab): Remove special cases for these zones.
* NEWS: Document the above.
2014-10-31 20:15:18 -07:00
Paul Eggert
bee436b03e Be less enthusiastic about Shanks and clarify UT vs UTC.
* africa, asia, australasia, backzone, europe, northamerica:
* southamerica, tz-link.htm: Be less enthusiastic about Shanks.
* tz-link.htm: Be clearer about UT vs UTC.
* NEWS: Document this.
2014-10-31 19:51:05 -07:00
Paul Eggert
8f81b94ebe * leapseconds.awk: Update the IERS's full name. 2014-10-31 16:16:55 -07:00
Paul Eggert
099ef6380a Remove stray line in previous patch. 2014-10-30 23:59:01 -07:00
Paul Eggert
929c14a3d8 Correct many pre-1989 entries for Korea.
(Thanks to Sanghyuk Jung.)
* asia (ROK): Add entries for 1948-1959 and correct entries
for 1987-1988.
(Asia/Seoul): Correct entries through 1962.
(Asia/Pyongyang): Guess no change since World War II.
* NEWS: Document this.
2014-10-30 23:52:24 -07:00
Paul Eggert
6ea8fa7879 Release tzcode2014i and tzdata2014i.
* NEWS, Makefile (VERSION): Increase to 2014i.
2014i
2014-10-21 22:06:07 -07:00
Paul Eggert
76f0cdaf90 * tz-link.htm: Remove mention of no-longer-distributed USGS data.
Clean up typography slightly.
2014-10-21 21:57:35 -07:00
Paul Eggert
7c3ff10f9e * tz-art.htm: Add Enright play. Fix Dylan title. 2014-10-21 19:06:23 -07:00
Paul Eggert
6ade45f043 * NEWS: Move abbreviation commentary to appropriate section. 2014-10-21 13:55:30 -07:00
Paul Eggert
253d6a8dbb * asia, backzone: Verify Trần 2005 and add sources.
I obtained a copy of Trần Tiến Bình's 2005 book "Lịch Việt Nam:
thế kỷ XX-XXI (1901-2100)", verified that www.thoigian.com.vn's
page is a verbatim quote of a passage in pages 45-50, and added a
list of Trần's sources for his pp 49-50.
2014-10-21 13:53:26 -07:00
Paul Eggert
8f58b53628 Fiji observes DST from 2014-11-02 02:00 to 2015-01-18 03:00.
(Thanks to Ken Rylander for the heads-up.)
* australasia (Fiji): Assume Nov Sun>=1 2:00 to Jan Sun>=18 3:00
from here on out.
* newtzset.3: Adjust Fiji example to match current assumptions.
* NEWS: Document this.
2014-10-20 17:31:00 -07:00
Paul Eggert
5119a2c3a3 * localtime.c (zoneinit): Return int errno value instead of bool
and storing into errno.  All uses changed.  This slightly
simplifies the code.
2014-10-18 11:07:54 -07:00
Paul Eggert
dd828f759d * northamerica, NEWS: Add NRC Canada link for DST.
(Thanks to Brian Inglis.)

* NEWS: Document this.
2014-10-18 00:54:02 -07:00
Paul Eggert
add61671e7 Fix localtime.c undefined behaviors and set errno.
Christos Zoulas reported a crash due to a tzsetlcl failure to
initialize data in some places, and requested that errno be set
when time functions fail; see:
http://mm.icann.org/pipermail/tz/2014-October/021754.html
While fixing this in a different way, I noticed and fixed another
instance of undefined behavior when read returns a too-small value.
* NEWS: Document this.
* localtime.c (union input_buffer): Rename from u_t.
(union input_buffer, union local_storage):
Move to top level so that two functions can use them.
(tzloadbody): New function, with most of the body of the old tzload.
Check for short reads that leave uninitialized buffers behind.
Define a new constant TZHEADSIZE for this, and use it to simplify
other code that already uses the concept.
(tzload): Use it.  This removes the need for gotos.  Return an errno
value; all callers changed.
(zoneinit): Return bool, not struct state *.  Assume SP is nonnull.
All callers changed.
(zoneinit, tzalloc): Set errno on failure.
(tzsetlcl): Don't crash if zoneinit fails.
* private.h (ENAMETOOLONG): Define if not already defined.
2014-10-18 00:45:29 -07:00
Paul Eggert
8791b19ae9 * northamerica, NEWS: Update NRC Canada URLs. (Thanks to Matt Johnson.) 2014-10-17 12:36:04 -07:00
Paul Eggert
d412edc822 * zdump.8: Be more specific about when a year starts. 2014-10-14 23:53:38 -07:00
Tim Parenti
a3733a4db3 * NEWS: Adds missing subheading. 2014-10-14 21:43:59 -07:00
Paul Eggert
e0c11579ca * australasia (Pacific/Fiji), NEWS: Guess no DST this year.
* newtzset.3: Mention that the Fiji example is obsolete.

(Thanks to Ken Rylander for the heads-up.)
2014-10-14 18:41:12 -07:00
Paul Eggert
fd5ac06bf7 new Zone Pacific/Bougainville
This is for the part of Papua New Guinea that plans to switch from
UTC+10 to UTC+11 on 2014-12-28 at 02:00.  (Thanks to Kiley Walbom
for the heads-up.)
* australasia (Pacific/Bougainville): New zone.
* zone.tab, zone1970.tab: Add entries for it.
* NEWS: Document this.
2014-10-13 20:43:59 -07:00
Paul Eggert
a978cd7ac2 * backzone (Asia/Hanoi): Just say "1954 Oct" for 1954 transition.
See Tim Parenti's comment in:
http://mm.icann.org/pipermail/tz/2014-October/021717.html
2014-10-13 08:48:32 -07:00
Paul Eggert
bcb616ca40 * backzone (Asia/Hanoi): New entry.
(Asia/Phnom_Penh, Asia/Vientiane): Update to be consistent.
2014-10-11 11:56:32 -07:00
Paul Eggert
61f21b964f * europe (Europe/Minsk): Change abbreviation from FET to MSK
when Moscow changes it clocks (2014-10-26 01:00 Minsk time).
* NEWS: Document this.
2014-10-09 21:17:03 -07:00
Tim Parenti
cb2e095a85 * europe: Add dates for historical use of FET. 2014-10-09 13:18:53 -07:00
Paul Eggert
4d306b3a17 Fix EOVERFLOW-related problems noted by Chistos Zoulas.
See: http://mm.icann.org/pipermail/tz/2014-October/021692.html
* asctime.c (asctime_r): Remove now-unnecessary EOVERFLOW ifdef.
* localtime.c (timesub): Set errno to EOVERFLOW on overflow.
POSIX requires this.
(ctime, ctime_r): Return NULL instead of having undefined behavior
when the time stamp is out of struct tm range.  NetBSD does this,
the standards allow it, and it's nicer for users.
* private.h (EOVERFLOW): Default to EINVAL on ancient hosts that lack it.
* NEWS: Document this.
2014-10-08 11:03:57 -07:00
Paul Eggert
3bf56b926f Fix some localtime.c problems noted by Christos Zoulas
in: http://mm.icann.org/pipermail/tz/2014-October/021684.html
* localtime.c (tzload): Use ssize_t, not int.  Redo comparison to
avoid the need for an ssize_t value less than -1, which POSIX does
not guarantee.  Use memmove so that we needn't worry about an
ssize_t index.
(tzparse): Remove static always-zero var.  Initialized fields
to zero by hand instead.
(zoneinit): Initialized more fields, to avoid undefined behavior
in tzalloc.
(leapcorr): Fix bug, a stray initialization of a local variable.
* Makefile: Add comment about ssize_t.
* NEWS: Document the above.
2014-10-07 21:43:13 -07:00
Paul Eggert
165f61b401 * zdump.c (adjusted_yday): Define only if TM_GMTOFF is not defined. 2014-10-04 17:38:05 -07:00
Paul Eggert
03eafae53a Many corrections to data for Vietnam, 1906-1975.
* asia (Asia/Ho_Chi_Minh):
Rewrite the data from 1906 through 1975, using new information
from Trần Tiến Bình's book.  (Thanks to Trần Ngọc Quân.)
New abbreviation IDT for UT+8 in Indochina.
* checktab.awk (tztab): Remove special cases for this zone.
* zone1970.tab: Add Asia/Ho_Chi_Minh, and add Asia/Bangkok commentary.
* NEWS: Document this.
2014-10-04 17:14:56 -07:00
Paul Eggert
6f7ddecfb0 Move two out-of-scope Indochina zones to 'backzone'.
* asia (Asia/Phnom_Penh, Asia/Vientiane):
Change these from zones to links to Asia/Bangkok.
* backzone: Move the old data here.
* checktab.awk (tztab): Remove special cases for these zones.
* NEWS: Document the above.
2014-10-04 16:54:39 -07:00
Paul Eggert
4cf114ec1a Make 'timezone' and 'altzone' more compatible with 'tzname'.
* localtime.c (localsub): Don't bother updating 'tzname' again
when localtime is GMT, as tzset's value should be fine.  When
updating 'tzname', also update 'timezone' and 'altzone'
consistently, on platforms that define the latter two vars.
* NEWS: Document this.
2014-10-03 22:22:50 -07:00