Namazu-users-en(old)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



dac> I have tested your patch and it did not work. I got the ERROR "islang('ja') is
dac> an undefined subroutine". Is that a feature you will implement later?

Sorry Daniel, islang should be prefixed util::, 
and the patch should look like:


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 22:38: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 && util::islang('ja');
     sprintf ("%c",$num);
 }
 

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