Commit Graph
3312 Commits
Author SHA1 Message Date
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
Tim Parenti 6cab305e57 * africa: A few fixes to typos and capitalization in commentary. 2014-06-24 23:39:25 -07:00
Tim Parenti a9da35214b Further updates to commentary, mostly un-ASCII-fying contributors' names.
Change attributions for contributors' names using the Latin alphabet
only where it was possible to reconstruct from mailing list records.
Leave attributions for Андрей Чернов, Иофис Герман Романович, and 李耀
宗 with their romanized versions instead (Andrey A. Chernov, German
Iofis, and Lee Yiu Chung, respectively).
2014-06-24 23:39:10 -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
Dominique Pelle 85e3d22f86 Fixed a couple of typos. 2014-06-16 22:53: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.
2014e
2014-06-12 21:55:29 -07:00
Paul Eggert cae673e3d7 Morocco's Ramadan-based transitions expand to Saturday-Saturday.
(Thanks to Milamber Space Network.)
* africa (Morocco): 2014 transitions are Jun 28 03:00 and Aug 2 02:00.
Guess a similar pattern for future years.  Fix white space to be
more consistent.
* NEWS: Document this.
2014-06-05 21:17:33 -07:00
Paul Eggert fc2f26f0d6 * tz-link.htm: "IEEE" is an abbreviation. 2014-06-04 23:38:04 -07:00
Paul Eggert 29e324e952 * tz-link.htm, NEWS: jCal is now RFC 7265. Mention PTP and the
draft CalDAV extension.  Update URLs for TSP, TZInfo, IATA.
Remove stale pointers to World Time Explorer and WORLDTIME.
2014-06-04 22:30:32 -07:00
Paul Eggert 9293a3c16f * europe, northamerica: Update Willett URL. 2014-06-04 19:26:45 -07:00
Tim Parenti 3e4bfaac03 * africa (Egypt): Prefer 24:00 to 23:00s, as 24:00 works nowadays. 2014-06-04 19:23:39 -07:00
Paul Eggert 8d0ecf1a59 * NEWS: Fix date typo. (Thanks to Tim Parenti.) 2014-06-04 19:10:31 -07:00
Paul Eggert 5e27c6a8ea Egypt's Ramadan-based transitions expand to Thursday-to-Thursday 24:00.
* africa (Egypt): 2014 transitions are June 26 and July 31 at 24:00.
(Thanks to Imed Chihi.)  Guess a similar pattern for future years,
namely, DST is not observed in Ramadan, nor in the days following the
last Thursday before Ramadan, nor in the days preceding the first
Friday after Ramadan.
* NEWS: Document this.
2014-06-04 09:33:15 -07:00
Paul Eggert 16312a4d1d * europe (Asia/Vladivostok): Fix "VLASST" typo for Vladivostok in 1991
summer, where the abbreviation should be "VLAST".  (Thanks to Hank W.)
* NEWS: Document this.
2014-05-31 22:51:23 -07:00
Paul Eggert 8d558674ce * europe (Russia, Europe/Moscow): Use "MSM" for Moscow Midsummer Time
in 1921.  (Thanks to Hank W. for reporting the problem.)
Also, update a stale URL.
* NEWS: Document the Moscow change.
2014-05-31 15:37:07 -07:00
Paul Eggert 918e24e0a5 * australasia: Move Cook Is to after New Zealand,
since they're in free association with NZ not Australia.
Mention notation problem with Chatham.
(Thanks to Hank W.)
This change doesn't alter the data files produced.
2014-05-30 01:34:20 -07:00
Paul Eggert a91cc14d7f Release tzcode2014d and tzdata2014d.
* NEWS, Makefile (VERSION): Increase to 2014d.
2014d
2014-05-27 21:35:46 -07:00
Paul Eggert 23f3f2edcb * tz-link.htm, NEWS: Mention GNOME. 2014-05-27 08:25:26 -07:00
Paul Eggert 1421881858 zic: move Big Bang to - 2**59
This should help forestall flame wars among competing camps of physicists.
(Thanks to James Cloos.)
* NEWS, zic.8 (NOTES): Document this.
* zic.c (BIG_BANG): Use - 2**59 rather than a more-precise estimate.
2014-05-26 17:22:33 -07:00
Paul Eggert 0880e2fe56 zic: disallow leap seconds before the Big Bang
* zic.c (inleap): Reject leap seconds preceding big_bang_time.
(Thanks to Arthur David Olson.)  Also, remove redundant test and cast.
* NEWS: Document this.
2014-05-25 12:20:29 -07:00
Paul Eggert b22d459a36 zic: work around GNOME bug by refusing to go back before the Big Bang
This works around Gnome bug 730332
<https://bugzilla.gnome.org/show_bug.cgi?id=730332>.
zic 2014c introduced the idea of generating a transition at the
minimum time value -2**63, to avoid ambiguities about what to do
before the first real transition.  Through Glib release 2.40, the
interval_end function of Glib's gtimezone.c subtracts one from
this, to find the end time of the zeroth interval (i.e., the
interval containing all the "early" time stamps); this subtraction
typically overflows and wraps around to 2**63 - 1, which causes
Glib to go off the rails and assume that all time stamps are
"early".  For example, Glib computes Sao Paulo time stamps as if
Brazil's circa-1913 rules were still in effect.
(Thanks to Leonardo Chiquitto for reporting the bug.)
Work around the bug by not generating time stamps equal to -2**63.
Come to think of it, time stamps before the Big Bang are physically
suspect anyway, so don't generate time stamps before the Big Bang.
* Makefile (GCC_DEBUG_FLAGS): Add comment re BIG_BANG.
* NEWS, zic.8 (NOTES): Document this.
* zic.c (BIG_BANG): New macro.
(big_bang_time): New constant.
(writezone, outzone, addtt): Compare to big_bang_time, not to
min_time, when deciding whether to output a time stamp.
2014-05-23 23:02:47 -03:00
Paul Eggert 9dc32cd094 * NEWS: Fix to match 2014c email announcement text. 2014-05-23 11:37:27 -07:00
Paul Eggert afa8e7a12b Release tzcode2014c and tzdata2014c.
* NEWS, Makefile (VERSION): Increase to 2014c.
2014c
2014-05-13 07:45:53 -07:00
Paul Eggert 0fb00e8461 africa: Egypt's May 15 transition is at 24:00
* africa (Egypt): Change to 24:00.  (Thanks to Gunther Vermier.)
2014-05-13 07:43:31 -07:00
Paul Eggert c9ebcee69b africa: Egypt resumes DST on May 15
(Thanks to Ahmad El-Dardiry.)
* NEWS: Document this.
* africa (Egypt): Add rules for 2014 through 2038.  They all
involve some guesswork, unfortunately.
2014-05-07 18:09:14 -07:00