
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig@htdig.org
Subject: [htdig] Patch

This patch adds support for <embed>, <object> and <link> tags.
(Don't you wish all additions could be this easy?)

--- htdig-3.1.2/htdig/HTML.cc.old	Fri Jul 30 12:24:14 1999
+++ htdig-3.1.2/htdig/HTML.cc	Fri Jul 30 13:16:55 1999
@@ -63,7 +63,7 @@ HTML::HTML()
     // the attrs Match object is used to match names of tag parameters.
     //
     tags.IgnoreCase();
-    tags.Pattern("title|/title|a|/a|h1|h2|h3|h4|h5|h6|/h1|/h2|/h3|/h4|/h5|/h6|noindex|/noindex|img|li|meta|frame|area|base");
+    tags.Pattern("title|/title|a|/a|h1|h2|h3|h4|h5|h6|/h1|/h2|/h3|/h4|/h5|/h6|noindex|/noindex|img|li|meta|frame|area|base|embed|object|link");
 
     attrs.IgnoreCase();
     attrs.Pattern("src|href|name");
@@ -894,6 +894,8 @@ HTML::do_tag(Retriever &retriever, Strin
 	}
 
 	case 21:	// frame
+	case 24:	// embed
+	case 25:	// object
 	{
 	    which = -1;
 	    int pos = srcMatch.FindFirstWord(position, which, length);
@@ -963,6 +965,7 @@ HTML::do_tag(Retriever &retriever, Strin
 	}
 	
 	case 22:	// area
+	case 26:	// link
 	{
 	    which = -1;
 	    int pos = hrefMatch.FindFirstWord(position, which, length);
@@ -972,7 +975,7 @@ HTML::do_tag(Retriever &retriever, Strin
 		case 0:		// "href"
 		{
 		    //
-		    // src seen
+		    // href seen
 		    //
 		    while (*position && *position != '=')
 			position++;

Torsten Neuer's <tneuer@inwise.de> fix for PR# 554.

--- htdig-3.1.2.bak/htsearch/Display.cc	Wed Apr 21 21:47:58 1999
+++ htdig-3.1.2/htsearch/Display.cc	Tue Aug  3 14:46:30 1999
@@ -20,6 +20,7 @@ static char RCSid[] = "$Id: Display.cc,v
 #include <stdio.h>
 #include <ctype.h>
 #include <syslog.h>
+#include <locale.h>
 #include "HtURLCodec.h"
 #include "HtWordType.h"
 
@@ -318,6 +319,7 @@ Display::displayMatch(ResultMatch *match
 	{
 	    struct tm	*tm = localtime(&t);
 	    char	*datefmt = config["date_format"];
+	    char	*locale  = config["locale"];
 	    if (!datefmt || !*datefmt)
 	      {
 		if (config.Boolean("iso_8601"))
@@ -325,6 +327,10 @@ Display::displayMatch(ResultMatch *match
 		else
 		    datefmt = "%x";
 	      }
+	    if ( locale && *locale )
+	      {
+		setlocale(LC_TIME,locale);
+	      }
 	    strftime(buffer, sizeof(buffer), datefmt, tm);
 	    *str << buffer;
 	}

