From 26a9bf756bf66e77dd7b897f7ad97a7ffdfb3275 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 Aug 2017 11:35:35 +0000 Subject: array.c: nested encoding * array.c (ary_join_1): ignore encodings in nested arrays as an initial encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/array.c b/array.c index f8faf697bf..0700a03193 100644 --- a/array.c +++ b/array.c @@ -2008,6 +2008,7 @@ ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first) else { VALUE args[4]; + *first = FALSE; args[0] = val; args[1] = sep; args[2] = result; -- cgit v1.2.3