Created
December 29, 2011 08:46
-
-
Save sho-h/1533004 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ruby-1.9.1-p431/gem_prelude.rb (revision 25931) | |
+++ ruby-1.9.1-p431-fixed/gem_prelude.rb (revision 25932) | |
@@ -66,8 +66,9 @@ | |
end | |
def self.set_home(home) | |
- @gem_home = home.force_encoding(Encoding.find('filesystem')) | |
- ensure_gem_subdirectories(@gem_home) | |
+ home = home.dup.force_encoding(Encoding.find('filesystem')) | |
+ home.gsub!(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR | |
+ @gem_home = home | |
end | |
def self.set_paths(gpaths) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment