diff options
author | Larry Wall <larry@wall.org> | 1998-10-23 18:00:41 +0000 |
---|---|---|
committer | Larry Wall <larry@wall.org> | 1998-10-23 18:00:41 +0000 |
commit | 834a4ddd8309fbf6aabbbc51bb6fcbe056e7963f (patch) | |
tree | 10dce2532e7be7538af0c19f5a7d7f73c9220e55 /pp_hot.c | |
parent | 62b1ebc20082e645ed8e8a0cc6c1ebf91577cd34 (diff) | |
download | perl-834a4ddd8309fbf6aabbbc51bb6fcbe056e7963f.tar.gz |
Program with utf8 identifiers fails to compile
p4raw-id: //depot/perl@2038
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2516,10 +2516,16 @@ PP(pp_method) !(iogv = gv_fetchpv(packname, FALSE, SVt_PVIO)) || !(ob=(SV*)GvIO(iogv))) { - if (!packname || !isIDFIRST(*packname)) + if (!packname || + ((*(U8*)packname >= 0xc0 && IN_UTF8) + ? !isIDFIRST_utf8(packname) + : !isIDFIRST(*packname) + )) + { DIE("Can't call method \"%s\" %s", name, SvOK(sv)? "without a package or object reference" : "on an undefined value"); + } stash = gv_stashpvn(packname, packlen, TRUE); goto fetch; } |