patch

rubys (Sam Ruby), 11/26/2009 05:46 am

Download (476 Bytes)

 
1
Index: gem_prelude.rb
2
===================================================================
3
--- gem_prelude.rb	(revision 25926)
4
+++ gem_prelude.rb	(working copy)
5
@@ -67,7 +67,7 @@
6
 
7
     def self.set_home(home)
8
       home = home.gsub File::ALT_SEPARATOR, File::SEPARATOR if File::ALT_SEPARATOR
9
-      @gem_home = home.force_encoding(Encoding.find('filesystem'))
10
+      @gem_home = home.dup.force_encoding(Encoding.find('filesystem'))
11
     end
12
 
13
     def self.set_paths(gpaths)