summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-04-21 19:12:21 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-05-29 09:41:14 -0700
commit1b08e05188c16b744b6f2b0e2a2321db606eb88d (patch)
tree92df09ea5bff2eab0e09893318ca4e64ff4ec3c2 /pp.c
parentedba6325a4364c7c1a9869871bb3d0be8e33acf7 (diff)
downloadperl-1b08e05188c16b744b6f2b0e2a2321db606eb88d.tar.gz
[perl #97478] Make ‘Can’t find opnumber’ UTF-8- and null-clean
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 908d16d50a..4858d99265 100644
--- a/pp.c
+++ b/pp.c
@@ -439,7 +439,10 @@ PP(pp_prototype)
if (strnEQ(s, "CORE::", 6)) {
const int code = keyword(s + 6, SvCUR(TOPs) - 6, 1);
if (!code || code == -KEY_CORE)
- DIE(aTHX_ "Can't find an opnumber for \"%s\"", s+6);
+ DIE(aTHX_ "Can't find an opnumber for \"%"SVf"\"",
+ SVfARG(newSVpvn_flags(
+ s+6, SvCUR(TOPs)-6, SvFLAGS(TOPs) & SVf_UTF8
+ )));
{
SV * const sv = core_prototype(NULL, s + 6, code, NULL);
if (sv) ret = sv;