Commit Graph
100 Commits
Author SHA1 Message Date
Paul Eggert ac652d59bb * CONTRIBUTING: New file.
* Makefile (COMMON): Add it.
* README, NEWS, Theory, africa, asia, australasia, europe:
* northamerica, southamerica: Mention it.
2014-08-11 16:03:52 -07:00
Paul Eggert 3405f9c2fb * tz-link.htm, NEWS: Mention HP-UX (and Windows in another place). 2014-08-11 15:20:17 -07:00
Paul Eggert 63ce01cfa8 * europe: Fix some broken British URLs. (Thanks to Lester Caine.)
* NEWS: Document this.
2014-08-11 13:01:24 -07:00
Paul Eggert f02ca7c6ef Shift the load a little between the two tarballs.
(Thanks to Alan Barrett for the suggestion.)
* Makefile (SOURCES): Move workman.sh here, from $(MISC).
(COMMON): Move NEWS here, from $(DOCS).
(tzdata$(VERSION).tar.gz): Move $(MISC) here, from
tzcode$(VERSION).tar.gz.
* NEWS: Document the above.
2014-08-11 12:32:48 -07:00
Paul Eggert 0512625db7 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.
2014-08-11 11:53:14 -07:00
Paul Eggert bdd2d3331b * tz-link.htm: Consolidate and tighten up Windows description.
* NEWS: Mention Windows-related doc changes.
2014-08-11 11:53:06 -07:00
Paul Eggert 115b6002d8 Adjust pre-1912 Portuguese transitions in the light of the 1911 decree.
(Thanks to Stephen Colebourne for a heads-up about the decree.)
* africa (Africa/Luanda, Africa/Bissau):
Change transition date to 1912-01-01.
(Atlantic/Cape_Verde, Africa/Maputo):
Add commentary about the switch.
* asia (Asia/Kolkata): Add commentary about Portuguese India.
* europe (Europe/Lisbon): Change Lisbon Mean Time from -0:36:32
to -0:36:45 (rounded from -0:36:44.68).
(Atlantic/Azores, Atlantic/Madeira):
Change transition date to 1912-01-01.
* NEWS: Document the above.
2014-08-11 00:28:13 -07:00
Paul Eggert 66e421de78 * northamerica: Remove no-longer-working mccsc.edu link.
(Thanks to Nathan Stratton Treadway.)
2014-08-10 15:28:45 -07:00
Paul Eggert 0e7d85ca8d * northamerica: Use a better (and active) web page for Indiana map.
(Thanks to Nathan Stratton Treadway for reporting the problem.)
2014-08-10 11:11:01 -07:00
Paul Eggert f2fd32be74 Don't put spaces before tabs.
* Makefile (check_tabs): New rule.
(check): Use it.
Also, fix all other files to not have spaces before tabs.
2014-08-09 17:52:45 -07:00
Paul Eggert 62060419e3 Minor spelling, accent, and spacing fixes.
In particular, this patch is makes the commentary more systematic
about preferring "time zone" to "timezone" except when quoting someone
else or when talking about code that uses "timezone".
2014-08-09 14:15:12 -07:00
Paul Eggert b7a38560a5 Don't put leapseconds.awk in tzdata tarball.
This harmless bug was introduced in release 2014f, which distributed
leapseconds.awk in both the code and the data tarballs.
It's code, so it should be in the code tarball.
* Makefile (DATA): Omit leapseconds.awk.
(check_character_set): Omit redundant check of $(LEAP_DEPS).
2014-08-09 12:46:44 -07:00
Paul Eggert 17e3e1fd3e A few minor spelling fixes.
Also, remove a stray email address that leaked through our
address-removal pass a while ago.
2014-08-09 01:22:55 -07:00
Paul Eggert 3c0c83726c Adjust pre-1926 Russian UTC offsets as per Byalokoz 1919.
(Thanks to Vladimir Karpinsky.)
* asia (Asia/Tbilisi, Asia/Samarkand):
* europe (Europe/Riga, Europe/Samara, Asia/Yekaterinburg, Asia/Omsk)
(Asia/Krasnoyarsk, Asia/Irkutsk, Asia/Yakutsk, Asia/Vladivostok):
Match Byalokoz 1919 better.
* NEWS: Document the above.
2014-08-08 00:54:55 -07:00
Paul Eggert da8d4338f2 Minor spelling, accent, or English fixes. 2014-08-06 22:51:12 -07:00
Paul Eggert 17be956450 Release tzcode2014f and tzdata2014f.
* NEWS, Makefile (VERSION): Increase to 2014f.
2014-08-05 17:46:53 -07:00
Paul Eggert 11c22e9205 * tz-link.htm: Mention Go. Add URL for Fortran. Fix tziCal license.
Update some other URLs and text in minor ways.
2014-08-05 17:41:14 -07:00
Paul Eggert 1c5a4059a7 * asia (Asia/Riyadh): Use modern spelling for Jeddah in comment. 2014-08-05 08:48:32 -07:00
Paul Eggert 4fa17743a2 * NEWS: Also mention Africa/Timbuktu. (Thanks to Stephen Colebourne.) 2014-08-02 18:32:57 -07:00
Paul Eggert a457c170da Revert almost all the zone-to-link changes, keeping only west Africa.
This should better address concerns about large-scale changes.
We can do the rest of these changes later, as they're not urgent.
* backward (Africa/Asmera, Asia/Saigon): Restore old links.
* checktab.awk (tztab): Handle zones that should probably be
turned into links some day.
* africa (Africa/Luanda, Africa/Porto-Novo, Africa/Gaborone)
(Africa/Bujumbura, Africa/Douala, Africa/Bangui, Indian/Comoro)
(Africa/Kinshasa, Africa/Lubumbashi, Africa/Brazzaville)
(Africa/Djibouti, Africa/Malabo, Africa/Asmara, Africa/Addis_Ababa)
(Africa/Libreville, Africa/Maseru, Indian/Antananarivo)
(Africa/Blantyre, Indian/Mayotte, Africa/Niamey, Africa/Kigali)
(Africa/Mogadishu, Africa/Mbabane, Africa/Dar_es_Salaam)
(Africa/Kampala, Africa/Lusaka, Africa/Harare):
* asia (Asia/Bahrain, Asia/Phnom_Penh, Asia/Kuwait)
(Asia/Vientiane, Asia/Muscat, Asia/Ho_Chi_Minh, Asia/Aden):
* australasia (Pacific/Saipan, Pacific/Midway):
* northamerica, southamerica (America/Antigua, America/Cayman):
New zones, restoring 2014e data.  Corresponding links removed.
* NEWS: Document the above.
2014-07-31 21:28:12 -07:00
Paul Eggert 183750fb0e * NEWS, africa, australasia: Minor commentary fixes.
Some of these are from Tim Parenti's proposed patches in:
http://mm.icann.org/pipermail/tz/2014-July/021265.html
2014-07-31 21:02:21 -07:00
Paul Eggert 4c73ed617f Rename time.tab to zone1970.tab.
* Makefile (ZONETABLES): Rename from TIMETABLES.  All uses changed.
* zone1970.tab: Rename from time.tab.  All uses changed.
2014-07-31 15:20:45 -07:00
Paul Eggert 87163d184d The Russian change for 2014-10-26 is official.
(Thanks to Alexander Krivenyshev.)
* europe, time.tab, zone.tab, NEWS (Asia/Chita, Asia/Srednekolymsk):
New zones.  These were formerly commented out.
2014-07-22 20:54:19 -07:00
Paul Eggert b7816e7306 * tzselect.ksh, NEWS: Port to non-Bash shell that has 'select'.
(Thanks to Alan Barrett.)
2014-07-22 20:18:49 -07:00
Paul Eggert f210b6706d * tzselect.8: Fix formatting glitch by creating NOTES section. 2014-07-22 19:50:32 -07:00
Paul Eggert 13454dc50c * Makefile (TZCOBJS), NEWS: Remove localtime.o, asctime.o.
(Thanks to John Cochran.)
2014-07-19 19:19:48 -07:00
Paul Eggert f107634953 * checktab.awk: Fix typo that prevented catching inks in 'time.tab'.
Also, hoist some code out of a loop.
2014-07-19 15:44:39 -07:00
Paul Eggert d46ab6e5e9 * europe: Fix spelling in comment. (Thanks to Christos Zoulas.) 2014-07-19 07:32:56 -07:00
Paul Eggert ec7a539e26 * europe, NEWS: Give proper credit to George Vernon Hudson
as the inventor of DST.
2014-07-19 01:19:40 -07:00
Paul Eggert 5ddc47fe41 New file time.tab, superseding zone.tab
It allows multiple country codes per zone.  Switch code and data to
use the new format, along with the recently-added Crozet Islands entry.
The old zone.tab file is still installed but is deprecated.
The new file uses UTF-8; add commentary saying that iso3166.tab is
planned to change to UTF-8.
* Theory, tzselect.8 (FILES): zone.tab -> time.tab.
* africa (Indian/Alfred_Faure): Remove link.
* antarctica: Mention Possession Island in comments.
* checktab.awk: Add support for checking time.tab.
* iso3166.tab: Mention planned switch to UTF-8.
Update ISO 3166-1 Newsletter from VI-15 to VI-16.
* time.tab: New file.
* tzselect.ksh (zonetabtype): New variable.
Add undocumented -t option, meant for developer testing.
(TZ_ZONE_TABLE): Use zonetabtype.
(output_distances, countries, regions, TZ): Support time.tab format.
(quoted_continents, distance_table, countries, regions)
(TZ, TZ_for_date): Quote shell strings more carefully.
* zone.tab: Refer to time.tab for detailed comments about format.
(Indian/Alfred_Faure): Remove.
* Makefile (TIMETABLES): New macro.
(TABDATA, install, check_tables): Use it.
(check_character_set, check_tables): Check time.tab too.
(check_time_t_alternatives): Use time.tab, not zone.tab.
* NEWS: Document the above.
2014-07-18 13:31:54 -07:00
Paul Eggert d690cb7feb * zone.tab: Reorder to put Pacific times together. 2014-07-18 01:33:34 -07:00
Paul Eggert 717ed49e71 Be a bit more consistent about Metlakatla and Resolute abbr and comments.
* northamerica (America/Metlakatla): Use the more-common "PST"
rather than our invented "MeST" for the abbreviation.  Our source
called it "Pacific Time", as did a contemporaneous news report,
and I couldn't find contemporaneous use of "MeST" or of
"Metlakatla Time".  Cite the news report in the commentary,
and quote some Juneau graffiti.
* zone.tab (America/Resolute): Call it Central Time, not Central
Standard Time, since it observes DST now.
(America/Metlakatla): Call it Pacific Standard Time, not
Metlakatla Time.  Mention that it's in Alaska.
* NEWS: Document the above.
2014-07-18 00:40:37 -07:00
Paul Eggert 66cc7f5d73 * tz-link.htm, NEWS: Mention the latlong package.
(Thanks to a heads-up from Dirkjan Ochtman.)
2014-07-15 22:52:10 -07:00
Paul Eggert f1ddf32f05 Revert some zone-to-link changes and add some more; plus related fixes.
Revert zone-to-link changes that changed current time zone
abbreviations.  Add a few more changes, for more consistency.
Make several other fixes discovered while researching this.
* africa (Africa/Accra, Antarctica/Syowa):
* asia (Pacific/Palau):
* australasia (Pacific/Funafuti, Pacific/Majuro, Pacific/Wake)
(Pacific/Wallis, Antarctica/DumontDUrville, Pacific/Chuuk)
(Pacific/Pohnpei):
* northamerica (Pacific/Tahiti):
Remove links, as they are now zones again.
* africa (Africa/Accra, Africa/Maputo):
* antarctica (Antarctica/DumontDUrville, Antarctica/Syowa):
* australasia (Pacific/Tahiti, Pacific/Majuro, Pacific/Chuuk)
(Pacific/Pohnpei, Pacific/Palau, Pacific/Funafuti, Pacific/Wake)
(Pacific/Wallis):
Restore zone.
* africa (Africa/Accra): Assume DST starting in 1920, as per Scott
Keltie & Epstein 1920.
* asia (Asia/Bahrain, Asia/Phnom_Penh, Asia/Kuwait, Asia/Vientiane)
(Asia/Muscat, Asia/Ho_Chi_Minh, Asia/Aden):
* northamerica (America/Antigua, America/Cayman):
Change from zone to link, as these are also closely related.
* africa (Africa/Blantyre, Africa/Bujumbura, Africa/Gaborone)
(Africa/Harare, Africa/Kigali, Africa/Lubumbashi, Africa/Lusaka):
Now links to Africa/Maputo, not Africa/Johannesburg.
* asia (Asia/Riyadh): Change standard-time transition from 1950
to 1947-03-14.  Add commentary citing Hunt 1961 and CAB 1946.
* australasia (Pacific/Chatham): Assume NZST - 45 min. before 1946.
Add commentary about this.
(Pacific/Pago_Pago): UT-11 from 1911 to 1950.
(WS, Pacific/Apia): Use NZ-style abbreviations.
Switch to "WSST" for Western Samoa standard time before 1950.
Add commentary about Samoa before 1950.
* backward (Africa/Asmera, Africa/Timbuktu, Asia/Saigon):
Redo to avoid link-to-link.
* europe (Hungary, Europe/Bucharest): Several pre-1946
corrections: in 1918 the transition out of DST was on 09-16, not
09-29; in 1919 it was on 11-24, not 09-15; in 1945 it was on
11-01, not 11-03; in 1941 the transition to DST was 04-08 not
04-06 at 02:00; and there was no DST in 1920.
(Poland): Add source for 1919.
* southamerica: Add link for America/Antigua.
* NEWS: Document the above.  Add some thanks.
2014-07-15 22:24:50 -07:00
Paul Eggert 4b4e789d5c Replace Africa zones with links when that doesn't lose useful info.
* africa (Africa/Luanda, Africa/Porto-Novo, Africa/Gaborone)
(Africa/Ouagadougou, Africa/Bujumbura, Africa/Douala, Africa/Bangui)
(Indian/Comoro, Africa/Kinshasa, Africa/Lubumbashi, Africa/Brazzaville)
(Africa/Djibouti, Africa/Malabo, Africa/Asmara, Africa/Addis_Ababa)
(Africa/Libreville, Africa/Banjul, Africa/Accra, Africa/Conakry)
(Africa/Maseru, Indian/Antananarivo, Africa/Blantyre, Africa/Bamako)
(Africa/Nouakchott, Indian/Mayotte, Africa/Maputo, Africa/Niamey)
(Africa/Kigali, Atlantic/St_Helena, Africa/Sao_Tome, Africa/Dakar)
(Africa/Freetown, Africa/Mogadishu, Africa/Mbabane, Africa/Dar_es_Salaam)
(Africa/Lome, Africa/Kampala, Africa/Lusaka, Africa/Harare):
* antarctica (Antarctica/Syowa):
Remove zone, replacing each with a link to a region that has had
the same UTC offset since 1970.
* NEWS: Document this.
2014-07-09 12:23:27 -07:00
Paul Eggert 662016b64a Replace some zones with links when that doesn't lose useful info.
This is like the 2013-09-02 change, but for the Pacific this time.
* antarctica (Antarctica/DumontDUrville):
* australasia (Pacific/Tahiti, Pacific/Saipan, Pacific/Majuro)
(Pacific/Chuuk, Pacific/Pohnpei, Pacific/Palau, Pacific/Funafuti)
(Pacific/Midway, Pacific/Wake, Pacific/Wallis):
Remove zone, replacing each with a link to a region that has had
the same UTC offset since 1970.  This removes data that were
largely invented, either by us or almost surely by Shanks or his
sources.
* asia, australasia, northamerica: Create links accordingly.
* NEWS: Document this.
2014-07-08 23:48:16 -07:00
Paul Eggert f04facaf78 * europe: Fix date typos in recently-added commentary. 2014-07-08 19:32:38 -07:00
Paul Eggert 81ee353cdd Correct time in Russia before 1927 or so.
(Thanks to Vladimir Karpinsky for the Moscow corrections.)
Other corrections are taken from Milne 1899.
* asia (Asia/Tbilisi): Change LMT from 2:59:16 to 2:59:06.
(Asia/Tashkent): Change LMT from 4:37:12 to 4:37:11.
* europe (Europe/Helsinki): Change LMT from 1:39:52 to 1:39:49.
(Europe/Riga): Change LMT from 1:36:24 to 1:36:28.
(Europe/Moscow): Change LMT from 2:30:20 to 2:30:17.
Change 1916/9 time from 2:30:48 to 2:31:19.
(Asia/Yekaterinburg): Change LMT from 4:02:24 to 4:02:33.
(Asia/Irkutsk): Change LMT from 6:57:20 to 6:57:15.
(Asia/Vladivostok): Change LMT from 8:47:44 to 8:47:34.
* zone.tab (Europe/Moscow): Use Kilometer 0 point.
* NEWS: Document this.
2014-07-08 19:23:04 -07:00
Paul Eggert 27b3aeb0ba * zic.8, NEWS: Clarify use of time types in rule lines.
(Thanks to Arthur David Olson.)
2014-07-08 16:58:15 -07:00
Paul Eggert 674e42c59b New link Indian/Alfred_Faure for the Crozet and Scattered Islands.
(Thanks to Tobias Conradi and Antoine Leca.)
* africa, zone.tab (Indian/Alfred_Faure): New link.
* antarctica: Adjust commentary accordingly.
* NEWS: Document this.
2014-07-08 15:18:10 -07:00
Paul Eggert 70a26f8218 * australasia (Pacific/Apia, WS): Move DST data from Zone to Rule lines.
This doesn't change the output, but is shorter and easier to follow.
Trim and adjust commentary a bit.
2014-07-08 11:43:03 -07:00
Paul Eggert 63bea53af5 Pacify 'make check_character_set'. 2014-07-07 22:47:16 -07:00
Paul Eggert f4007fd42c Update zone.tab for Russia, and remove Asia/Tiksi comment.
My best guess is that the Asia/Tiksi entry is a false alarm,
and that the area hasn't diverged from Yakutsk since 1970.
* europe: Move zone.tab comments to zone.tab.
(Asia/Yakutsk): Move comment for Bulunsky district here,
Remove a comment about a draft Asia/Tiksi zone, containing the
Bulunsky district.  We don't have sufficient evidence that it
ever diverged from Yakutsk after 1970.
* zone.tab (RU): Reorder entries to make more geographical sense.
Add comments for draft zones Asia/Chita, Asia/Srednekolymsk.
(Europe/Samara, Asia/Novokuznetsk, Asia/Magadan, Asia/Kamchatka)
(Asia/Anadyr): Mention that the Moscow offset changes 2014-10-26.
* NEWS: Document the above.
2014-07-07 22:09:37 -07:00
Paul Eggert 3ddf68d115 * asia (Asia/Taipei): 1945 transition was 09-21 01:00, not 10-25.
Also, update commentary to describe recent changes better.
(Thanks to Yu-Cheng Chuang.)
* NEWS: Document this.
2014-07-04 11:01:17 -07:00
Paul Eggert 7287ec61a6 The Russian change is at 02:00 local time, not 02:00 Moscow time.
* europe (Europe/Kaliningrad, Europe/Moscow, Europe/Simferopol)
(Europe/Volgograd, Asia/Yekaterinburg, Asia/Omsk)
(Asia/Novosibirsk, Asia/Irkutsk, Asia/Yakutsk, Asia/Vladivostok):
The transition this fall is at 02:00 local time, not 02:00 Moscow time.
The newspaper report was wrong.  Also, add pointers to the bill and to
Krivenyshev's table.  (Thanks to Alexander Krivenyshev.)
2014-07-01 22:18:59 -07:00
Paul Eggert a26af2be66 Correct times for Asia/Taipei before 1945-10-25.
(Thanks to Yu-Cheng Chuang.)  Also, update time zone abbreviations for
Japan's two time zones used 1896-1937.  JWST now stands for Western
Standard Time, and JCST for Central Standard Time (formerly this was CJT).
* asia (Taiwan): Omit DST during 1945.
(Asia/Taipei): Add a transition to JWST on 1896-01-01, then to
JST on 1937-10-01, then to CST on 1945-10-25.
(Asia/Tokyo): Rename CJT to JCST.  Transition to JCST was 1937-10-01,
not 1938.
(Asia/Seoul, Asia/Pyongyang): Call UT+9 "JCST" until 1937-01-01,
"JST" thereafter.  Assume JCST/JST until Allied takeover after WWII.
* NEWS: Document this.
2014-07-01 18:22:47 -07:00
Paul Eggert e30b13efd4 Russia moves most of its clocks back an hour this fall.
(Thanks to Alexander Krivenyshev.)
* europe: Document FET separately.  Add a comment about
whether Zabajkal'skij kraj needs a separate zone.
(Europe/Kaliningrad, Europe/Moscow, Europe/Simferopol, Europe/Volgograd)
(Asia/Yekaterinburg, Asia/Omsk, Asia/Novosibirsk, Asia/Irkutsk)
(Asia/Yakutsk, and Asia/Vladivostok): Subtract an hour from the
time zone on 2014-10-26 at 02:00 Moscow time.
(Europe/Simferopol): Move to after Europe/Moscow, to simplify
similar maintenance in the future.
* NEWS: Document this.
2014-07-01 15:02:13 -07:00
Paul Eggert 90fc5d80e8 A few more commentary fixes related to AEST/AEDT etc.
* antarctica: Shrink commentary to fit into 80 columns.
* tz-link.htm: Rework example to use "CST" throughout.
2014-06-30 23:30:36 -07:00
Paul Eggert f7a73336e9 * asia: 'Urumqi' -> 'Ürümqi' in commentary. 2014-06-30 23:16:57 -07:00
Paul Eggert 15b01c042a Simplify China's time zones from five to two.
* NEWS, asia: Document this.
* asia (Asia/Harbin, Asia/Chongqing, Asia/Kashgar): Remove.
These are now links in 'backward'.
(Asia/Shanghai): Change pre-standard-time offset from 8:05:57 to
8:05:43.  Change transition to standard time from 1928 to 1901.
(Asia/Urumqi): Remove 1980 transition to UTC+8.
* backward (Asia/Harbin, Asia/Chongqing, Asia/Kashgar): New links.
(Asia/Chungking): Avoid link-to-link.
* zone.tab (Asia/Harbin, Asia/Chongqing, Asia/Kashgar): Remove.
2014-06-30 23:07:22 -07:00
Paul Eggert 81a7abf902 A few more fixes related to AEST/AEDT etc. (Thanks to Tim Parenti.)
* Theory: Use CST instead of EST in the example, so that it matches
the current database.
* antarctica (Antarctica/Casey): AWST, not WST.
* asia (Asia/Jayapura): ACST, not CST.
* australasia: Prepend "[A]" to "EST" in quote about EST.
2014-06-30 01:19:46 -07:00
Paul Eggert 62df86e10c Use AEST/AEDT etc. instead of EST etc. for Australian abbreviations.
* NEWS, australasia (Aus, Australia/Darwin, AW, Australia/Perth)
(Australia/Eucla, AQ, Holiday, Australia/Brisbane, Australia/Lindeman)
(AS, Australia/Adelaide, AT, Australia/Hobart, Australia/Currie, AV)
(Australia/Melbourne, AN, Australia/Sydney, Australia/Broken_Hill)
(LH, Australia/Lord_Howe, Antarctica/Macquarie):
Prefix Australian time zone abbreviations with "A", and switch
from "ST" to "DT" to denote daylight saving time.  (Thanks to Ian
Abbott, Russ Allbery, Timothy Arceri, Alan Barrett, Stuart Bishop,
Shaun Bouckaert, Stephen Colebourne, Tobias Conradi, Mark Davis,
Robert Elz, Clive D.W. Feather, Dennis Ferguson, Edwin Groothuis,
Guy Harris, John Hawkinson, John Haxby, Brian Inglis, Paul Koning,
Kevin Lyda, Curtis Manwaring, Alan Mintz, Arthur David Olson, Matt
Paine, David Patte, Tim Parenti, random832, Derick Rethans, SM,
Peter Stagg, Rich Tibbett, Bennett Todd, and Garrett Wollman for
their contributions to this topic.)
2014-06-30 00:35:15 -07:00
Paul Eggert 468555e32d Fix glitches with '-' and italics in man pages.
Using '\-' to denote ASCII minus has problems in groff output, since
it generates a minus sign in the current font, and if you cut and
paste from the documentation the resulting text won't work.  To avoid
the problem, define a string \*- that expands to ASCII minus in a
constant-width font in groff.  Also, change some instances of \(mi and
\(pl to use plain \- and +, since we no longer need special fonts for
these.  Finally, remove some no-longer-needed instances of "\^" after
italicized words.
2014-06-28 16:37:21 -07:00
Paul Eggert 8f065f5aa9 * asctime.c, newctime.3, newtzset.3: Don't imply ASCII is required. 2014-06-28 14:09:32 -07:00
Paul Eggert c25e1180cf More spelling and accent fixes.
Plus, update a now-obsolete source for Samoa's late-2011 change to the
International Date Line.
2014-06-27 16:06:47 -07:00
Paul Eggert 1f511fbd8b * leap-seconds.list: Copy from current NIST version. 2014-06-27 15:38:49 -07:00
Paul Eggert 8fd7c232b7 * zic.8: Fix formatting of long URL.
* zic.8: Format the URL better, by using groff's .URL macro,
falling back on a portable alternative for non-groff implementations.
2014-06-27 01:46:22 -07:00
Paul Eggert 5be5ee3dd4 Mention more JavaScript libraries.
* tz-link.htm, NEWS: Mention Moment Timezone, TimezoneJS.Date, Walltime-js,
and Timezone.  (Thanks to a heads-up from Matt Johnson.)  Also, list
license for timezone-olson.
2014-06-27 01:09:39 -07:00
Paul Eggert 2c780353d2 'zic' now rejects output file names with '.' or '..' components.
* zic.8, NEWS: Say that "." and ".." file name
components are not allowed in output file names.
* zic.c (componentcheck, namecheck): Do not allow such
file name components.
2014-06-26 23:37:51 -07:00
Paul Eggert f88bd423e6 Fix some 'zic' issues when run as root.
* zic.c: Use angle brackets for <sys/stat.h>.
(dolink): Don't try to link from a directory, as this can
cause trouble on some systems when superuser.
(dolink, itsdir): Rewrite to avoid use of 'access', which is
problematic when setuid.
(itsdir): If S_ISDIR is defined, use plain 'stat' and S_ISDIR;
that's more reliable.  Return -1 if trouble; all callers changed.
(mkdirs): Simplify by using mkdir-itsdir rather than
itsdir-mkdir-itsdir.  Don't assume strerror preserves errno.
2014-06-26 21:22:12 -07:00
Paul Eggert dcf567c4e9 * private.h, zdump.c (TZ_DOMAIN): Look at HAVE_GETTEXT,
not TZ_DOMAINDIR, when deciding whether to define.  This fixes a
recently-introduced typo.  Found by compiling with -DHAVE_GETTEXT
under GNU/Linux.
2014-06-26 15:19:00 -07:00
Paul Eggert 52518704ee Avoid <ctype.h> locale problems.
* zdump.c, zic.c: Don't include <ctype.h>, because the behavior if
its macros is locale-dependent if HAVE_GETTEXT, and we want the C
locale's semantics.  Instead, use portable replacements for
ctype.h operations, with the desired semantics.  All uses of
isalpha etc. replaced by calls to new functions is_alpha etc.  or
by inline code.
(isascii): Remove.
(is_alpha): New function.
* zic.c (doabbr): Simplify by using is_alpha.
(is_space): New function.
* NEWS: Document the above.
2014-06-26 14:47:12 -07:00
Paul Eggert 100a770913 * zic.8, NEWS: Document character encoding issues better.
(Thanks to Guy Harris for reporting the problem.)
2014-06-26 14:25:47 -07:00
Paul Eggert 0e07c140e8 A few more spelling, accent, and commentary cleanups. 2014-06-26 10:07:15 -07:00
Paul Eggert ee82eb4a05 * Theory, NEWS: Also document EST5EDT etc. as exceptions.
Use the term "legacy names" for exceptions.
2014-06-26 09:39:13 -07:00
Paul Eggert 300e008f98 'zic -v' now warns about all '.'s in output file names.
* zic.c (componentcheck, namecheck): Warn about all '.'s in
the file name, not merely about "." and ".." file name components.
* zic.8 (DESCRIPTION), NEWS: Document this.
2014-06-26 09:36:50 -07:00
Paul Eggert 5b9d37cbea Go back to ASCII in *.txt files, too.
For *.txt files, UTF-8 is not that important, and avoiding it
is better for users with older or misconfigured manpage readers.
* Makefile (check_character_set): Check that *.txt files
contain only safe characters.
($(MANTXTS)): Build *.txt files in the C locale, not in en_US.utf8.
2014-06-25 23:29:43 -07:00
Paul Eggert 2d118af291 Add 'Thanks' for previous change. 2014-06-25 23:17:28 -07:00
Paul Eggert 0c0f598f26 Check POSIX file name restrictions more carefully.
Also, document the longstanding exceptions to POSIX.
Derived from Arthur David Olson's patch in:
http://mm.icann.org/pipermail/tz/2014-June/021052.html
* Theory: Document the exceptional file name components in 'etcetera'
and 'backward' that contain '+' or digits, or are too long.
* zic.8 (DESCRIPTION): Document the change to zic.
* zic.c (component_length_check, namecheck): New functions.
(dolink, writezone): Use them to check that file name components
obey the POSIX rules, and do not contain "." or "..".
* NEWS: Document the above.
2014-06-25 23:15:27 -07:00
Paul Eggert d8cf675093 Remove no-longer-necessary trademark notices.
(Thanks to Arthur David Olson.)
* private.h, zic.c: Remove UNIX notices.
2014-06-25 17:19:42 -07:00
Paul Eggert 437a132016 Remove usno* files.
(Thanks to Tim Parenti for the suggestion.)
* Makefile (MISC), NEWS: Remove usno* files.
* usno1988, usno1989, usno1989a, usno1995, usno1997, usno1998: Remove.
* africa, asia, australasia, tz-link.htm: Remove commentary about
these files.
2014-06-25 13:53:15 -07:00
Paul Eggert 4127a54685 Improve checking for non-ASCII characters.
* Makefile (NONSYM_CHAR, NONSYM_LINE): New macros.
(SAFE_SHARP_LINE): Don't let comments contain troublesome symbols.
(check_character_set): Don't let troublesome symbols appear in
source files, and don't let non-ASCII appear in .html files.
2014-06-25 12:17:43 -07:00
Paul Eggert e1f721201a More spelling and accent fixes.
(Thanks to Ian Abbott for catching some stray '’'s.)
2014-06-25 11:04:15 -07:00
Paul Eggert 363a1be6df More spelling and accent fixes. 2014-06-25 01:02:29 -07:00
Paul Eggert fe8b770c2d Add encoding directives for unibyte GNU Emacs.
(Thanks to Garrett Wollman for reporting the problem.)
* NEWS, Theory, northamerica: Add "coding: utf-8" directives so
that GNU Emacs, when run in a unibyte locale, does not mistakenly
interpret these files to be unibyte.  This change should make no
difference if you use Emacs to read these files in a UTF-8 locale.
I didn't bother to add coding directives to files where GNU Emacs
already deduces the encoding correctly in a Latin-1 locale.
2014-06-24 14:55:26 -07:00
Paul Eggert 68c374b829 * tz-link.htm: Avoid non-ASCII char in source. 2014-06-24 14:37:59 -07:00
Paul Eggert ffb8e529e0 Switch back to ASCII for symbols.
Garrett Wollman reported privately that XEmacs 21.4.22, the current
stable version, doesn't work with the UTF-8 recently introduced
into our commentary.  For example, the UTF-8 character '−'
(MINUS SIGN), which is stored as the three bytes "\342\210\222",
displays as 'â\210\222'.  For proper names this is annoying but
tolerable, as there's little loss in utility from (say) 'Racoviță'
to its display form 'RacoviÈ\233Ä\203'.  But for symbols this is a
real pain that can make it hard to understand the documentation, e.g.,
'Release 2014e – 2014-06-12 21:53:52 −0700' displays as
'Release 2014e â\200\223 2014-06-12 21:53:52 â\210\2220700'.
To work around this problem, make the following substitutions in
commentary to mostly revert these symbols to their pre-UTF-8 versions:
'§' -> 'section', '°' -> 'degrees', '±' -> '+-', '–' -> '-' (en
dash), '—' -> '--' (em dash), '′' -> "'", '″' -> '"', '→' -> '->',
'−' -> '-' (minus sign), '≤' -> '<='.  Leave proper names and
foreign words in UTF-8.
2014-06-19 17:51:16 -07:00
Paul Eggert 6ca6cceade Fix a couple more accents and one misspelled name. 2014-06-19 00:29:16 -07:00
Paul Eggert 99544d30aa Update to pacify recent GCC's static checking.
These changes pacify gcc 4.8.2-19ubuntu1 on Ubuntu 14.04,
and take advantage of recently-added GCC options when compiling
with GCC_DEBUG_FLAGS.
* Makefile (GCC_DEBUG_FLAGS): Add -Wdeclaration-after-statement,
-Wjump-misses-init, -Wsuggest-attribute=format.
* date.c (copyright, sccsid):
* strftime.c (sccsid):
Remove unused vars.
* date.c (main):
* localtime.c (tzparse):
Remove no-longer-needed uses of INITIALIZE; GCC is smart enough to
figure these out on its own now.
* localtime.c (gmtsub): Redo initialization of gmt_is_set to pacify GCC.
Retry malloc next time even if it failed this time.
* private.h, zdump.c (GNUC_or_lint): Remove, as it provoked a GCC
diagnostic about unused macros in some cases.  Instead, just use
'lint'.  All uses removed.
(TZ_DOMAIN): Don't define unless needed, as otherwise it provokes
a GCC diagnostic about unused macros.
* private.h (INITIALIZE): Simplify accordingly.
* NEWS: Document this.
2014-06-18 23:35:58 -07:00
Paul Eggert 3001a6adf4 Fix a few more accents and hyphens, and update a name and a URL. 2014-06-18 00:02:48 -07:00
Paul Eggert f653657333 * Theory: Prefer '≤' to '<=' in commentary. 2014-06-17 18:57:07 -07:00
Paul Eggert a577b388f3 Distinguish hyphen from minus from dashes.
Most of this patch is to commentary, to distinguish better among
the similar characters hyphen '-', minus sign '−', en dash '–' (used
for ranges), and em dash '—'.  Render ordinary dashes in text as
spaced en dashes, as this gives better-looking results in monospaced
fonts.
* yearistype.sh, zic.c: Reword diagnostics so that they do not use
hyphens as if they were dashes.  Since we are sticking to ASCII in
programs, we can't use proper dashes in diagnostics.
2014-06-17 18:46:31 -07:00
Paul Eggert 1d41c06051 Be more consistent about bracketing URLs in commentary.
Use angle brackets unless the URL is already surrounded by white space.
(Thanks to a suggestion from Steffen Nurpmeso.)
2014-06-17 13:14:45 -07:00
Paul Eggert 03555bfb58 * antarctica: 'ţ' → 'ț' in Romanian. (Thanks to Philip Newton.) 2014-06-16 23:01:58 -07:00
Paul Eggert 248d1f10a1 Restore more accents. Also, update Antarctic commentary.
This does not change any of the data.
2014-06-16 20:18:01 -07:00
Paul Eggert 678ef76670 Restore more accents. Also, don't mention Salas y Gómez in zone.tab.
* zone.tab (Pacific/Easter):
Don't mention Salas y Gómez, as it is uninhabited.
* NEWS: Document this.
2014-06-16 00:51:49 -07:00
Paul Eggert 09d35582da Simplify use of URLs in text files.
In several cases our text files had commentary like this:
# Egypt to cancel daylight saving time
# <a href="http://www.almasryalyoum.com/en/node/407168">
# http://www.almasryalyoum.com/en/node/407168
# </a>
where lines 2 and 4 let the file be viewed by a browser with the
URL being clickable.  In practice this approach does not work with
many modern browsers (I tested with Firefox and with Chrome) and
it clutters up the data, so in cases like the above this patch
removes lines 2 and 4.
(Problem reported by Steffen "Daode" Nurpmeso.)
2014-06-15 17:38:04 -07:00
Paul Eggert 9a8aa790bc Don't abuse "`" to mean open quote.
This was appropriate before Unicode, where "`" and "'" often balanced
in visual output, but that's been obsolete for a while.
Overall, single-quote 'like this' instead of `like this', and
double-quote "like this" or (in typeset output) “like this”
instead of ``like this''.  While we're at it, fix some glitches
with hyphens versus minus versus en dash versus em dash.
* Makefile ($(MANTXTS)): Use UTF-8 locale to produce *.txt output.
* checktab.awk, tzselect.ksh:
Quote 'like this' in diagnostics, instead of `like this'.
* date.1, newctime.3, newtzset.3, time2posix.3, zic.8 (q, lq, rq):
New macros.  Use them for better double-quoting in output.
* workman.sh: Tell Perl that its stdin and stdout are UTF-8.
* NEWS: Document this.
2014-06-15 13:27:37 -07:00
Paul Eggert ac99ec780d Revert fix for "stack buffer overrun", which was a false alarm.
* localtime.c (time1): Shrink size of 'types' local back down
from TZ_MAX_TIMES to TZ_MAX_TYPES.  The smaller value suffices,
since nseen can grow to at most TZ_MAX_TYPES.  (Thanks to
Arthur David Olson.)
* NEWS: Remove mention of non-fix.
2014-06-15 10:33:17 -07:00
Paul Eggert 80569ec12d * europe (Turkey): Document the massive confusion on March 30.
(Thanks to Randal L. Schwartz.)
2014-06-15 00:17:08 -07:00
Paul Eggert c6abc0f671 * Theory: Fix Swedish-language typo. (Thanks to Philip Newton.) 2014-06-14 23:47:21 -07:00
Paul Eggert be51b8b1be Document ALL_STATE fix. 2014-06-14 23:42:07 -07:00
Paul Eggert 13b204c3b4 Shrink stack frame sizes, particularly if ALL_STATE.
* localtime.c (tzload) [ALL_STATE]:
Redo to keep the stack frame tiny.
(time1): Shrink sizes of local arrays so that this stack frame
doesn't take much more than about TZ_MAX_TIMES bytes total.
2014-06-14 23:35:37 -07:00
Paul Eggert ce7bf999f7 Fix stack buffer overrun in mktime and similar functions.
* localtime.c (time1): Declare 'types' array to have TZ_MAX_TIMES
entries, not TZ_MAX_TYPES entries.
* NEWS: Document this.
2014-06-14 23:22:03 -07:00
Paul Eggert 05c08c6a63 Fix Finland's 1942 fall-back transition.
* europe (Finland), NEWS: Finland's 1942 fall-back transition was
10-04 01:00, not 10-03 00:00.  (Thanks to Konstantin Hyppönen.)
2014-06-14 19:19:41 -07:00
Paul Eggert 41c79956c3 Now that we can use UTF-8, restore accents that ASCII lost.
* NEWS, Theory, africa, europe, northamerica, southamerica:
Don't insist on ASCII when normal English usage would have
accented words.
2014-06-14 19:11:27 -07:00
Paul Eggert 7587516fbb Change web page encoding from US-ASCII to UTF-8.
* Makefile (DOCS): Move $(WEB_PAGES) here ...
(MISC): ... from here, so that they can contain UTF-8.
* tz-art.htm, tz-link.htm: Switch to UTF-8 encoding.
Prefer UTF-8 to HTML entities, e.g., prefer '–' to '&ndash;'.
2014-06-14 17:19:27 -07:00
Paul Eggert 1f8eea5374 Allow non-ASCII characters in the commentary.
* Makefile (INVALID_CHAR1): Rename to SAFE_CHARSET1.
(INVALID_CHAR2): Rename to SAFE_CHARSET2.
(INVALID_CHAR3): Rename to SAFE_CHARSET3.
(INVALID_CHAR): Remove.
(SAFE_CHARSET, SAFE_CHAR, SAFE_LINE, SAFE_SHARP_LINE, VALID_LINE):
New macros.
(check_character_set): Allow any UTF-8 character in some contexts,
including comments in the data, and in some auxiliary commentary files.
2014-06-14 16:36:18 -07:00
Paul Eggert 2d889e995b Improve performance a bit with GNU Make.
* Makefile (.PHONY): New rule, listing non-file targets.
2014-06-14 15:25:13 -07:00
Paul Eggert aac77e9d1d Release tzcode2014e and tzdata2014e.
* NEWS, Makefile (VERSION): Increase to 2014e.
2014-06-12 21:55:29 -07:00