summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-07-10 08:18:57 -0300
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:18 -0700
commit9e964fea750e6cadbe970c77950b0004aa2c9167 (patch)
treec9dd2c799c843cb39c73ab069deac877a93ee04f /pp_sys.c
parent108f32a5da28810b69c9097b4559dc86faada4fc (diff)
downloadperl-9e964fea750e6cadbe970c77950b0004aa2c9167.tar.gz
pp_sys.c: pp_select UTF8 cleanup.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 79d6787322..26aaf2e383 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1226,7 +1226,7 @@ PP(pp_select)
if (! hv)
XPUSHs(&PL_sv_undef);
else {
- GV * const * const gvp = (GV**)hv_fetch(hv, GvNAME(egv), GvNAMELEN(egv), FALSE);
+ GV * const * const gvp = (GV**)hv_fetch(hv, GvNAME(egv), HEK_UTF8(GvNAME_HEK(egv)) ? -GvNAMELEN(egv) : GvNAMELEN(egv), FALSE);
if (gvp && *gvp == egv) {
gv_efullname4(TARG, PL_defoutgv, NULL, TRUE);
XPUSHTARG;