mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
[ruby-list:47790] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1195ba6644
commit
674ea103fa
3 changed files with 7 additions and 1 deletions
|
@ -890,6 +890,7 @@ class TestArray < Test::Unit::TestCase
|
|||
a = @cls[]
|
||||
assert_equal("", a.join)
|
||||
assert_equal("", a.join(','))
|
||||
assert_equal(Encoding::US_ASCII, a.join.encoding)
|
||||
|
||||
$, = ""
|
||||
a = @cls[1, 2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue