ruby-changes:13734
From: naruse <ko1@a...>
Date: Wed, 28 Oct 2009 15:06:33 +0900 (JST)
Subject: [ruby-changes:13734] Ruby:r25527 (trunk): * gem_prelude.rb (Gem.set_home):
naruse 2009-10-28 15:06:17 +0900 (Wed, 28 Oct 2009) New Revision: 25527 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25527 Log: * gem_prelude.rb (Gem.set_home): force_encoding(Encoding.filesystem_encoding) [ruby-dev:39546] * gem_prelude.rb (Gem.set_paths): ditto. Modified files: trunk/ChangeLog trunk/gem_prelude.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25526) +++ ChangeLog (revision 25527) @@ -1,3 +1,11 @@ +Wed Oct 28 15:02:31 2009 NARUSE, Yui <naruse@r...> + + * 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@r...> * encoding.c (get_filesystem_encoding): Index: gem_prelude.rb =================================================================== --- gem_prelude.rb (revision 25526) +++ gem_prelude.rb (revision 25527) @@ -67,7 +67,7 @@ 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 @@ end @gem_path.uniq! + @gem_path.map!{|x|x.force_encoding(Encoding.filesystem_encoding)} end def self.user_home -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/