Single-quoted utf8 patch from Simon Cozens.
Jarkko Hietaniemi [Wed, 31 May 2000 21:45:34 +0000 (21:45 +0000)]
p4raw-id: //depot/cfgperl@6176

toke.c

diff --git a/toke.c b/toke.c
index 99c993e..be21c93 100644 (file)
--- 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;
        }