summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-07-11 18:50:10 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:19 -0700
commite0260a5b7a4c9245402af2910213dd35717e5bd2 (patch)
tree4a8e6fe940f71045523d4f2dd71cbe94c0aa1bb9 /pp.c
parenta180b31a163df6f094784ad4abcff6b8d80304d2 (diff)
downloadperl-e0260a5b7a4c9245402af2910213dd35717e5bd2.tar.gz
gv.c, op.c, pp.c: Stash-injected prototypes and prototype() are UTF-8 clean.
This makes perl -E '$::{example} = "\x{30cb}"; say prototype example;' store and fetch the correctly flagged prototype. With this, all TODO tests in gv.t pass; The next commit will deal with making the parsing of prototypes nul-clean.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index ee516aeabc..40cb3dee13 100644
--- a/pp.c
+++ b/pp.c
@@ -457,7 +457,7 @@ PP(pp_prototype)
}
cv = sv_2cv(TOPs, &stash, &gv, 0);
if (cv && SvPOK(cv))
- ret = newSVpvn_flags(SvPVX_const(cv), SvCUR(cv), SVs_TEMP);
+ ret = newSVpvn_flags(SvPVX_const(cv), SvCUR(cv), SVs_TEMP | SvUTF8(cv));
set:
SETs(ret);
RETURN;