* 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
This commit is contained in:
naruse 2009-11-05 03:29:20 +00:00
parent c47c38de93
commit e5b75da1fe
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Nov 5 12:27:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
* gem_prelude.rb (Gem.user_home): force_encoding(
Encoding.find('filesystem')). [ruby-core:26525]
Thu Nov 5 07:47:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (BEGIN): now local_push are local_pop are necessary in

View File

@ -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:/"