mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
c47c38de93
commit
e5b75da1fe
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:/"
|
||||
|
|
Loading…
Reference in a new issue