changeset 5786:3293578b2f71

getdate.y patch for parsing empty string near DST boundaries.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 04 Apr 2005 19:53:07 +0000
parents 8cecd2398182
children cbe22a271d32
files lib/ChangeLog
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,17 @@
+2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* getdate.y (parser_control): rels_seen is now a boolean, not a
+	count, since there's no maximum.  All uses changed.
+	Add member dsts_seen.
+	(local_zone): Accumulate dsts_seen rather than relying on tm_isdst
+	not being INT_MAX.
+	(get_date): Initialize dsts_seen, and check that it doesn't go over 1.
+	Use pc_rels_seen to decide whther a date is absolute.
+
+	* getdate.y (number): Don't overwrite year.
+	(get_date): Initialize pc.year.digits to 0, not 4, to enable above
+	check.
+
 2005-04-02  Simon Josefsson  <jas@extundo.com>
 
 	* getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny