summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2000-12-02 19:49:35 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-04 16:25:15 +0000
commit3c1071f27f81b6dfd8d73d825ae7de3c747da907 (patch)
tree7a254a84ba48570e24432b4a0dc4e9417d7adc64 /doop.c
parent8e4bc33bdf4ed8200ffbc530cba09e11f3edc232 (diff)
downloadperl-3c1071f27f81b6dfd8d73d825ae7de3c747da907.tar.gz
(Retracted by #7978, too shaky yet.)
Subject: Re: utf8 in hash keys, implementor missing Message-ID: <20001202194935.A25673@pembro33.pmb.ox.ac.uk> The first step at UTF-8 hash keys. p4raw-id: //depot/perl@7977
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index 3c34425075..762c67974a 100644
--- a/doop.c
+++ b/doop.c
@@ -1177,8 +1177,11 @@ Perl_do_kv(pTHX)
PUTBACK; /* hv_iternext and hv_iterval might clobber stack_sp */
while ((entry = hv_iternext(keys))) {
SPAGAIN;
- if (dokeys)
+ if (dokeys) {
XPUSHs(hv_iterkeysv(entry)); /* won't clobber stack_sp */
+ if (SvUTF8((SV*)keys))
+ SvUTF8_on(TOPs); /* Yuck */
+ }
if (dovalues) {
PUTBACK;
tmpstr = realhv ?