Namazu-users-en(old)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mailman & "Charactères Français" (resolved with patch)
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@xxxxx>:
> > 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.
>
>