summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-05 03:29:20 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-05 03:29:20 (GMT)
commite5b75da1fe3a9a92ba018dd21fb3a462a7568b60 (patch)
treebf9f9d65e4f04bb81aaef25973ac5ec024199adb /gem_prelude.rb
parentc47c38de93db16ae2f24b7c6f45aa6700f62eb08 (diff)
* gem_prelude.rb (Gem.user_home): force_encoding(
Encoding.find('filesystem')). [ruby-core:26525] git-svn-id: svn+ssh://ci.ruby-lang.org/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 519f693..15a1b43 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:/"