зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
8d9e64fb38
Коммит
6790c040df
|
@ -1,3 +1,11 @@
|
|||
Wed Oct 28 15:02:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* gem_prelude.rb (Gem.set_home):
|
||||
force_encoding(Encoding.filesystem_encoding)
|
||||
[ruby-dev:39546]
|
||||
|
||||
* gem_prelude.rb (Gem.set_paths): ditto.
|
||||
|
||||
Wed Oct 28 14:24:45 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* encoding.c (get_filesystem_encoding):
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче