SvUTF8_off() in do_join can be unconditional.
Nicholas Clark [Fri, 14 Jan 2005 09:52:51 +0000 (09:52 +0000)]
p4raw-id: //depot/perl@23799

doop.c

diff --git a/doop.c b/doop.c
index c0c1ef4..b1de08d 100644 (file)
--- a/doop.c
+++ b/doop.c
@@ -676,8 +676,7 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
 
     sv_setpvn(sv, "", 0);
     /* sv_setpv retains old UTF8ness [perl #24846] */
-    if (SvUTF8(sv))
-       SvUTF8_off(sv);
+    SvUTF8_off(sv);
 
     if (PL_tainting && SvMAGICAL(sv))
        SvTAINTED_off(sv);