From 813f3585690a4dcdb87f3e4e031ef4b284762dbb Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Sep 2011 18:18:03 +0000 Subject: * 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 --- array.c | 1 + 1 file changed, 1 insertion(+) (limited to 'array.c') 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; -- cgit v1.2.3