From 92089610b617fc07084d03f24a3e58a40639e5ce Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Jul 2014 02:42:59 +0000 Subject: fake.rb.in: override File::ALT_SEPARATOR * template/fake.rb.in (File::ALT_SEPARATOR): override ALT_SEPARATOR if different, not only a backslash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/fake.rb.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'template/fake.rb.in') 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 -- cgit v1.2.3