Skip to content

Instantly share code, notes, and snippets.

@sho-h
Created December 29, 2011 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sho-h/1533004 to your computer and use it in GitHub Desktop.
Save sho-h/1533004 to your computer and use it in GitHub Desktop.
--- 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