summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 07:34:24 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 07:34:24 (GMT)
commit7a884fe4660746a085bc999c9c35e2e1833ae136 (patch)
tree0985c3b432314833a40f333a82ee28d3beda49f7 /gem_prelude.rb
parente2e09b812541c629f52ae89ae7de7bb1945f3420 (diff)
* 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
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index c60c10b..519f693 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -67,7 +67,7 @@ if defined?(Gem) then
def self.set_home(home)
home = home.gsub File::ALT_SEPARATOR, File::SEPARATOR if File::ALT_SEPARATOR
- @gem_home = home.force_encoding(Encoding.filesystem_encoding)
+ @gem_home = home.force_encoding(Encoding.find('filesystem'))
end
def self.set_paths(gpaths)
@@ -87,7 +87,7 @@ if defined?(Gem) then
end
@gem_path.uniq!
- @gem_path.map!{|x|x.force_encoding(Encoding.filesystem_encoding)}
+ @gem_path.map!{|x|x.force_encoding(Encoding.find('filesystem'))}
end
def self.user_home