diff options
-rw-r--r-- | template/fake.rb.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in index c94eec3516..50e1a49060 100644 --- a/template/fake.rb.in +++ b/template/fake.rb.in @@ -15,10 +15,11 @@ class Object RUBY_VERSION = "@RUBY_PROGRAM_VERSION@" RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (@RUBY_RELEASE_DATE@) [#{RUBY_PLATFORM}]" end -if RUBY_PLATFORM =~ /mswin|bccwin|mingw/ - class File +class File + sep = ("\\" if RUBY_PLATFORM =~ /mswin|bccwin|mingw/) + if sep != ALT_SEPARATOR remove_const :ALT_SEPARATOR - ALT_SEPARATOR = "\\" + ALT_SEPARATOR = sep end end |