mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* encoding.c (get_filesystem_encoding): removed.
* encoding.c (rb_locale_encindex): added. * encoding.c (rb_filesystem_encindex): added. * encoding.c (rb_filesystem_encindex): add an alias 'filesystem'. [ruby-dev:39574] * encoding.c (enc_find): add rdoc about special aliases. * gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem'). * gem_prelude.rb (Gem.set_paths): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2e09b8125
commit
7a884fe466
4 changed files with 60 additions and 35 deletions
|
@ -37,6 +37,8 @@ class TestEncoding < Test::Unit::TestCase
|
|||
|
||||
def test_find
|
||||
assert_raise(ArgumentError) { Encoding.find("foobarbazqux") }
|
||||
assert_nothing_raised{Encoding.find("locale")}
|
||||
assert_nothing_raised{Encoding.find("filesystem")}
|
||||
end
|
||||
|
||||
def test_dummy_p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue