[Namazu-users-en] Re: namazu stopped working

Tadamasa Teranishi yw3t-trns at asahi-net.or.jp
Mon Nov 28 20:20:23 JST 2005


Tadamasa Teranishi wrote:
> 
> Does the error occur by nmzchkw.pl when the index is made only with
> this document in mknmz?
> 
> The index seems not to be broken in the environment in hand.

It reproduced it with C and en_GB.ISO-8859-15. 

--- /namazu-2.0.14/filter/html.pl   2004-03-21 00:48:30.000000000 +0900
+++ html.pl     2005-11-28 20:18:41.000000000 +0900
@@ -314,6 +314,8 @@ sub remove_html_elements ($) {
 # Decode a numberd entity. Exclude an invalid number.
 sub decode_numbered_entity ($) {
     my ($num) = @_;
+    return ""
+       if $num >= 256;
     return ""
        if $num >= 0 && $num <= 31 || $num >= 127 && $num <= 159 ;
     return ""
-- 
=====================================================================
TADAMASA TERANISHI yw3t-trns at asahi-net.or.jp
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E



More information about the Namazu-users-en mailing list