Skip to content

Instantly share code, notes, and snippets.

--- 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
--- ruby-1.8.5-p231/math.c 2007-02-13 08:01:19.000000000 +0900
+++ ruby-1.8.5-p231-fixed/math.c 2008-07-02 18:25:48.000000000 +0900
@@ -34,7 +34,7 @@
if (isnan(x)) {
#if defined(EDOM)
errno = EDOM;
-#elif define(ERANGE)
+#elif defined(ERANGE)
errno = ERANGE;
#endif