namazu-users-en
[Top] [All Lists]

Re: Mailman & "Charactères Français" (resolved with patch)

To: namazu-users-en@namazu.org
Subject: Re: Mailman & "Charactères Français" (resolved with patch)
From: "Daniel A. Chartrand" <dchartrand@scclab.com>
Date: Thu, 5 Jun 2003 09:21:46 -0500
Reply-to: namazu-users-en@namazu.org
Message-id: <1054822906.3edf51fa7ca13@www.scclab.com>
I have tested your patch and it did not work. I got the ERROR "islang('ja') is
an undefined subroutine". Is that a feature you will implement later?

However,

sub decode_numbered_entity ($) {
    my ($num) = @_;
    return ""
        if $num >= 0 && $num <= 31 || $num >= 127 && $num <= 159 ;
    sprintf ("%c",$num);
}

Works for me!

Quoting Makoto Fujiwara <makoto@ki.nu>:

I solved my problem. Changed $num >=127 to 256.
I think we need following change on filter/html.pl

Index: filter/html.pl
===================================================================
RCS file: /storage/cvsroot/namazu/filter/html.pl,v
retrieving revision 1.32.4.5
diff -u -r1.32.4.5 html.pl
--- filter/html.pl    29 Apr 2003 19:10:39 -0000      1.32.4.5
+++ filter/html.pl    5 Jun 2003 00:56:17 -0000
@@ -315,7 +315,9 @@
 sub decode_numbered_entity ($) {
     my ($num) = @_;
     return ""
-     if $num >= 0 && $num <= 8 ||  $num >= 11 && $num <= 31 || $num >=127;
+     if $num >= 0 && $num <= 31 || $num >= 127 && $num <= 159 ;
+    return "" 
+     if $num >=127 && islang('ja');
     sprintf ("%c",$num);
 }
 

Thanks a lot,
---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.



<Prev in Thread] Current Thread [Next in Thread>