byte mode chop() should clear UTF8 (from Gisle Aas)
Gurusamy Sarathy [Sun, 20 Feb 2000 17:59:41 +0000 (17:59 +0000)]
p4raw-id: //depot/perl@5166

doop.c

diff --git a/doop.c b/doop.c
index a0fa729..34cc0e3 100644 (file)
--- a/doop.c
+++ b/doop.c
@@ -956,6 +956,7 @@ Perl_do_chop(pTHX_ register SV *astr, register SV *sv)
        sv_setpvn(astr, s, 1);
        *s = '\0';
        SvCUR_set(sv, len);
+       SvUTF8_off(sv);
        SvNIOK_off(sv);
     }
     else