Date: Thu, 7 Feb 2002 15:40:30 -0600 (CST) From: Gilles Detillieux To: "ht://Dig mailing list" Subject: [htdig] PATCH - fix meta date tag parsing in 3.1.6 This patch fixes a problem introduced in 3.1.6's handling of use_doc_date, which wasn't in the 3.1.5 patches for this feature. The new date parsing code in 3.1.6 didn't allow a '-' character after the year in the content attribute of meta date tags, but only allowed white space, which is obviously not in accordance with the ISO 8601 date format standard. Apply this patch in your main htdig-3.1.6 source directory using the command: patch -p0 < this-message-file --- htdig/Retriever.cc.orig Thu Jan 31 17:47:17 2002 +++ htdig/Retriever.cc Thu Feb 7 14:47:27 2002 @@ -1139,7 +1139,7 @@ parsedcdate(char *date) year += 1900; else if (year >= 19100) // seen some programs do it, why not check? year -= (19100-2000); - while (isspace(*s)) + while (*s == '-' || isspace(*s)) s++; // get month... -- Gilles R. Detillieux E-mail: Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 _______________________________________________ htdig-general mailing list To unsubscribe, send a message to with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html