ruby-changes:34630
From: nobu <ko1@a...>
Date: Sun, 6 Jul 2014 11:43:15 +0900 (JST)
Subject: [ruby-changes:34630] nobu:r46713 (trunk): fake.rb.in: override File::ALT_SEPARATOR
nobu 2014-07-06 11:42:59 +0900 (Sun, 06 Jul 2014) New Revision: 46713 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46713 Log: fake.rb.in: override File::ALT_SEPARATOR * template/fake.rb.in (File::ALT_SEPARATOR): override ALT_SEPARATOR if different, not only a backslash. Modified files: trunk/template/fake.rb.in Index: template/fake.rb.in =================================================================== --- template/fake.rb.in (revision 46712) +++ template/fake.rb.in (revision 46713) @@ -15,10 +15,11 @@ class Object https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L15 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/