aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-29 18:18:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-29 18:18:03 +0000
commit813f3585690a4dcdb87f3e4e031ef4b284762dbb (patch)
treec6ffb536a59f83806773f3657dab4632cb4d45c2 /array.c
parent8ce9cb8f3185a12d13dce3c994f4aaf05f37a703 (diff)
downloadruby-813f3585690a4dcdb87f3e4e031ef4b284762dbb.tar.gz
* array.c (ary_join_1): should not copy the encoding of non-string
element after string element. [ruby-core:39776] [Bug #5379] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index 82013df69d..8816d15590 100644
--- a/array.c
+++ b/array.c
@@ -1659,6 +1659,7 @@ ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first)
case T_STRING:
str_join:
rb_str_buf_append(result, val);
+ *first = FALSE;
break;
case T_ARRAY:
obj = val;