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: <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to