mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									24e4104675
								
							
						
					
					
						commit
						92089610b6
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue