summaryrefslogtreecommitdiffstats
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-05 03:29:20 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-05 03:29:20 +0000
commit6f637f73371e57f11ab7aced80fbf367855fac93 (patch)
treebf9f9d65e4f04bb81aaef25973ac5ec024199adb /gem_prelude.rb
parentc89395879204397140ba11ad8020b290d983c118 (diff)
downloadruby-6f637f73371e57f11ab7aced80fbf367855fac93.tar.gz
ruby-6f637f73371e57f11ab7aced80fbf367855fac93.tar.xz
ruby-6f637f73371e57f11ab7aced80fbf367855fac93.zip
* gem_prelude.rb (Gem.user_home): force_encoding(
Encoding.find('filesystem')). [ruby-core:26525] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 519f693bb..15a1b43fe 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -91,7 +91,7 @@ if defined?(Gem) then
end
def self.user_home
- @user_home ||= File.expand_path("~")
+ @user_home ||= File.expand_path("~").force_encoding(Encoding.find('filesystem'))
rescue
if File::ALT_SEPARATOR then
"C:/"