From: Gilles D. <gr...@sc...> - 2002-03-19 17:31:28
|
According to William R. Knox: > David, > Have you applied the following change (sent to the ht-dig list by Gilles > back on Feb. 7)? That could give you this problem (it did to me). > > ---- > Arrgh! Sorry, my fault. I introduced new date parsing code in htdig > a couple months ago, and I thought I had tested it but evidently not > well enough. On line 1142 of htdig/Retriever.cc, change the line: > > while (isspace(*s)) > > to: > > while (*s == '-' || isspace(*s)) > ---- Good point, Bill. I just remembered this morning that I should have pointed this out. David didn't explicitly mention whether he's using 3.1.6 or 3.2.0b4, but if it's the former, he can get the fix above as a patch at ftp://ftp.ccsf.org/htdig-patches/3.1.6/metadate.0 as well. > On Tue, 19 Mar 2002, David_Bourne wrote: > > From: David_Bourne <da...@bo...> > > To: John Moylan <mo...@rt...> ... > > >This is easily fixed by searching the code and changing -'s for /'s > > >on the relevant line, as I have had to do for www.RTE.ie > > > > Thanks for the suggestions. Gilles had mentioned it earlier. I believe John was aware of my suggestion, as he posted in reply to my followup to you. John seems to be suggesting to change the date parsing code in htdig, so it allows slashes instead of, or in addition to, the hyphens. That's certainly possible, and I'm considering it for the future, but it shouldn't be done at the cost of ISO 8601 compliance, i.e. the code should still allow hyphens even if it allows slashes as well. -- Gilles R. Detillieux E-mail: <gr...@sc...> 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 |