[Namazu-cvs 1057] r275 - MMagic/trunk

cvsd @ vaj.namazu.org cvsd @ vaj.namazu.org
2006年 9月 19日 (火) 17:22:20 JST


Author: knok
Date: 2006-09-19 17:22:20 +0900 (Tue, 19 Sep 2006)
New Revision: 275

Modified:
   MMagic/trunk/MMagic.pm
Log:
Fixed an expression.


Modified: MMagic/trunk/MMagic.pm
===================================================================
--- MMagic/trunk/MMagic.pm	2006-09-19 07:54:34 UTC (rev 274)
+++ MMagic/trunk/MMagic.pm	2006-09-19 08:22:20 UTC (rev 275)
@@ -1279,7 +1279,7 @@
 
 	# do octal/hex conversion
 	# manmin
-	$testval =~ s/\\(x[0-9a-fA-F][0-9a-fA-F])/chr(hex($1))/eg;
+	$testval =~ s/\\x([0-9a-fA-F][0-9a-fA-F])/pack("H2", $1)/eg;
 	$testval =~ s/\\([0-7][0-7]?[0-7]?)/chr(oct($1))/eg;
 	# end manmin
 




Namazu-cvs メーリングリストの案内