summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 06:06:17 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 06:06:17 (GMT)
commit6790c040df493afe4e6ca485e73447e3efa857ce (patch)
tree38c0ba845d393215f348c05ebc01d95e393bed67 /gem_prelude.rb
parent8d9e64fb38a58b5d9bac0342ef642054c5dd8b3f (diff)
* gem_prelude.rb (Gem.set_home):
force_encoding(Encoding.filesystem_encoding) [ruby-dev:39546] * gem_prelude.rb (Gem.set_paths): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index ca865aa..c60c10b 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
+ @gem_home = home.force_encoding(Encoding.filesystem_encoding)
end
def self.set_paths(gpaths)
@@ -87,6 +87,7 @@ if defined?(Gem) then
end
@gem_path.uniq!
+ @gem_path.map!{|x|x.force_encoding(Encoding.filesystem_encoding)}
end
def self.user_home