[Slashdotjp-dev 1395] [926] Fix compress filter enable to use multibyte characters

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 1月 8日 (木) 15:04:38 JST


Revision: 926
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=926
Author:   tach
Date:     2009-01-08 15:04:38 +0900 (Thu, 08 Jan 2009)

Log Message:
-----------
Fix compress filter enable to use multibyte characters

Modified Paths:
--------------
    slashjp/trunk/Slash/Utility/Access/Access.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/Utility/Access/Access.pm
===================================================================
--- slashjp/trunk/Slash/Utility/Access/Access.pm	2009-01-08 04:13:12 UTC (rev 925)
+++ slashjp/trunk/Slash/Utility/Access/Access.pm	2009-01-08 06:04:38 UTC (rev 926)
@@ -602,7 +602,7 @@
 		# characters being in a comment, but no one should be using
 		# that many wide characters in the standard English
 		# alphabet.  we can adjust filters if necessary. -- pudge
-		$content_slice =~ s/(.)/ord($1) > 2**8-1 ? '_' : $1/ge;
+		$content_slice =~ s/(.)/ord($1) > 2**8-1 ? '_' : $1/ge unless ($constants->{tweak_japanese});
 
 		for (sort { $a <=> $b } keys %$limits) {
 			next unless $length >= $limits->{$_}->[0]

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-01-08 04:13:12 UTC (rev 925)
+++ slashjp/trunk/debian/changelog	2009-01-08 06:04:38 UTC (rev 926)
@@ -9,8 +9,9 @@
   * Fix to set/unset firehose_usermode correctly
   * Fix regexp match warning
     at /usr/lib/perl5/Slash/Utility/Comments.pm line 625
+  * Fix compress filter enable to use multibyte characters
 
- -- Taku YASUI <tach****@osdn*****>  Thu,  8 Jan 2009 04:12:39 +0000
+ -- Taku YASUI <tach****@osdn*****>  Thu,  8 Jan 2009 06:03:51 +0000
 
 slash (2.5.0.231-1) unstable; urgency=low
 


Slashdotjp-dev メーリングリストの案内
Back to archive index