summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-05-31 21:45:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-05-31 21:45:34 +0000
commitfeee6ba43ca4d3608f6eff3d7f46fe8197d73e68 (patch)
tree55d6f96242e8f7fa50538517d3359fcd22011f81
parente2b7feff2af4c9d2305c63ab7210f785f826d8e7 (diff)
downloadperl-feee6ba43ca4d3608f6eff3d7f46fe8197d73e68.tar.gz
Single-quoted utf8 patch from Simon Cozens.
p4raw-id: //depot/cfgperl@6176
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 99c993e8fa..be21c93887 100644
--- a/toke.c
+++ b/toke.c
@@ -981,6 +981,8 @@ S_sublex_start(pTHX)
p = SvPV(sv, len);
nsv = newSVpvn(p, len);
+ if (SvUTF8(sv))
+ SvUTF8_on(nsv);
SvREFCNT_dec(sv);
sv = nsv;
}