• R/O
  • HTTP
  • SSH
  • HTTPS

fswiki-lite: Commit

FSWikiLite


Commit MetaInfo

Revision55a85924ccac943dc27bfead906f7b14e079c04d (tree)
Time2017-12-07 22:54:48
Authorkgsoft <kgsoft@871d...>
Commiterkgsoft

Log Message

jcode.pl-2.13 対応:defined(%hash) is deprecated

Change Summary

Incremental Difference

--- a/lib/jcode.pl
+++ b/lib/jcode.pl
@@ -681,7 +681,7 @@ sub __z2h_jis {
681681
682682 sub z2h_euc {
683683 local(*s, $n) = @_;
684- &init_z2h_euc unless defined %z2h_euc;
684+ &init_z2h_euc if !%z2h_euc;
685685 $s =~ s/($re_euc_c|$re_euc_kana)/
686686 $z2h_euc{$1} ? ($n++, $z2h_euc{$1}) : $1
687687 /geo;
@@ -690,7 +690,7 @@ sub z2h_euc {
690690
691691 sub z2h_sjis {
692692 local(*s, $n) = @_;
693- &init_z2h_sjis unless defined %z2h_sjis;
693+ &init_z2h_sjis if !%z2h_sjis;
694694 $s =~ s/($re_sjis_c)/$z2h_sjis{$1} ? ($n++, $z2h_sjis{$1}) : $1/geo;
695695 $n;
696696 }
Show on old repository browser