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

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

2003-06-05 08:21:59
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(_at_)ki(_dot_)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.