diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-29 21:32:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-29 21:32:33 +0000 |
commit | c590f3618f2d45852734e8e3af071fdc1099e114 (patch) | |
tree | d1deff00501a2f45cdad60347587e6ec046f0f6a /lib/utf8_heavy.pl | |
parent | f34dec15bb9e49ae0039c78141053106a14a4caf (diff) | |
download | perl-c590f3618f2d45852734e8e3af071fdc1099e114.tar.gz |
Nasty recursion trap if one would match Unicode.
p4raw-id: //depot/perl@12272
Diffstat (limited to 'lib/utf8_heavy.pl')
-rw-r--r-- | lib/utf8_heavy.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utf8_heavy.pl b/lib/utf8_heavy.pl index e86b727397..d0bc5bff00 100644 --- a/lib/utf8_heavy.pl +++ b/lib/utf8_heavy.pl @@ -26,7 +26,7 @@ sub SWASHNEW { while (($caller = caller($i)) eq __PACKAGE__) { $i++ } my $encoding = $enc{$caller} || "unicore"; (my $file = $type) =~ s!::!/!g; - if ($file =~ /^In[- _]?(.+?)$/i) { + if ($file =~ /^(In|in|IN|iN)[- _]?(.+?)\s*$/) { # /i would cause recursion. my $In = $1; defined %utf8::In || do "$encoding/In.pl"; my $prefix = substr(lc($In), 0, 3); |