This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_hot.c: First letter of latin-1 classnames wasn't being checked correctly.
[perl5.git] / pp_hot.c
index 70eb5a1..a2d6f91 100644 (file)
--- 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)
            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",
                ))
            {
                Perl_croak(aTHX_ "Can't call method \"%"SVf"\" %s",