HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/patches/ruby/1.9.1/p431/backport-2404.patch
Index: gem_prelude.rb
===================================================================
--- a/gem_prelude.rb	(revision 25926)
+++ b/gem_prelude.rb	(working copy)
@@ -67,7 +67,7 @@
 
     def self.set_home(home)
       home = home.gsub File::ALT_SEPARATOR, File::SEPARATOR if File::ALT_SEPARATOR
-      @gem_home = home.force_encoding(Encoding.find('filesystem'))
+      @gem_home = home.dup.force_encoding(Encoding.find('filesystem'))
     end
 
     def self.set_paths(gpaths)