pkgsrc/converters/jcode-perl/patches/patch-aa
taca 7168b77bf0 Stop warning with perl 5.12.
Bump PKGREVISION.
2010-09-06 12:18:19 +00:00

24 lines
651 B
Text

$NetBSD: patch-aa,v 1.1 2010/09/06 12:18:19 taca Exp $
Fix for perl 5.12.
--- jcode.pl-2.13.orig 2010-09-02 02:42:04.000000000 +0000
+++ jcode.pl-2.13
@@ -681,7 +681,7 @@ sub __z2h_jis {
sub z2h_euc {
local(*s, $n) = @_;
- &init_z2h_euc unless defined %z2h_euc;
+ &init_z2h_euc unless %z2h_euc;
$s =~ s/($re_euc_c|$re_euc_kana)/
$z2h_euc{$1} ? ($n++, $z2h_euc{$1}) : $1
/geo;
@@ -690,7 +690,7 @@ sub z2h_euc {
sub z2h_sjis {
local(*s, $n) = @_;
- &init_z2h_sjis unless defined %z2h_sjis;
+ &init_z2h_sjis unless %z2h_sjis;
$s =~ s/($re_sjis_c)/$z2h_sjis{$1} ? ($n++, $z2h_sjis{$1}) : $1/geo;
$n;
}