summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-12-13 19:32:48 -0300
committerFather Chrysostomos <sprout@cpan.org>2011-12-15 20:13:28 -0800
commitd47f310d69da3356f76ded4c14c2770d5f1325f4 (patch)
tree4145aee67b224fcdcc499e9d8b0b174b678fc2b8 /pp_hot.c
parent5dca8ed9d28127c9f7a2e7ce5f8ba970da3608cd (diff)
downloadperl-d47f310d69da3356f76ded4c14c2770d5f1325f4.tar.gz
pp_hot.c: First letter of latin-1 classnames wasn't being checked correctly.
Previously the first letter for latin-1 classnames was being mischecked, only allowing ASCII, which caused an instance of the Unicode Bug for downgradable classnames.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 70eb5a163a..a2d6f9140e 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2973,7 +2973,7 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
if (!packname ||
((UTF8_IS_START(*packname) && DO_UTF8(sv))
? !isIDFIRST_utf8((U8*)packname)
- : !isIDFIRST(*packname)
+ : !isIDFIRST_L1((U8)*packname)
))
{
Perl_croak(aTHX_ "Can't call method \"%"SVf"\" %s",