summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-24 06:37:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-24 06:37:59 +0000
commit8dbfaa5d36ec189ba6941f2f7fc195eeb1133e3f (patch)
tree1553cc350dad823bf724a9084cab58ddc16631d2 /doop.c
parentf542ffb367db39e7b23dc65e66936110ad283e81 (diff)
downloadperl-8dbfaa5d36ec189ba6941f2f7fc195eeb1133e3f.tar.gz
Larry's fix for buggy propagation of utf8-ness in join(); add test
p4raw-id: //depot/perl@5920
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/doop.c b/doop.c
index 06b1b38d5c..4224b0ea13 100644
--- a/doop.c
+++ b/doop.c
@@ -660,12 +660,9 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
if (items-- > 0) {
char *s;
- if (*mark) {
- s = SvPV(*mark, tmplen);
- sv_setpvn(sv, s, tmplen);
- }
- else
- sv_setpv(sv, "");
+ sv_setpv(sv, "");
+ if (*mark)
+ sv_catsv(sv, *mark);
mark++;
}
else