projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34dec1
)
Nasty recursion trap if one would match Unicode.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 29 Sep 2001 21:32:33 +0000
(21:32 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 29 Sep 2001 21:32:33 +0000
(21:32 +0000)
p4raw-id: //depot/perl@12272
lib/utf8_heavy.pl
patch
|
blob
|
history
diff --git
a/lib/utf8_heavy.pl
b/lib/utf8_heavy.pl
index
e86b727
..
d0bc5bf
100644
(file)
--- 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);