diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-24 06:37:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-24 06:37:59 +0000 |
commit | 8dbfaa5d36ec189ba6941f2f7fc195eeb1133e3f (patch) | |
tree | 1553cc350dad823bf724a9084cab58ddc16631d2 /doop.c | |
parent | f542ffb367db39e7b23dc65e66936110ad283e81 (diff) | |
download | perl-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.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |