mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* tool/compile_prelude.rb (C_ESC): use octal escape to avoid
"\x09for (;;) ..." to be interpret the first character 0x9f. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									9a5fd6098d
								
							
						
					
					
						commit
						ab12f27fb5
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Fri Feb  1 11:44:22 2008  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* tool/compile_prelude.rb (C_ESC): use octal escape to avoid
 | 
			
		||||
	  "\x09for (;;) ..." to be interpret the first character 0x9f.
 | 
			
		||||
 | 
			
		||||
Thu Jan 31 23:06:42 2008  Yusuke Endoh  <mame@tsg.ne.jp>
 | 
			
		||||
 | 
			
		||||
	* test/ruby/test_bignum.rb: suppress warnings during test.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,8 +16,8 @@ C_ESC = {
 | 
			
		|||
  "\n" => '\n',
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
0x00.upto(0x1f) {|ch| C_ESC[[ch].pack("C")] ||= "\\x%02x" % ch }
 | 
			
		||||
0x7f.upto(0xff) {|ch| C_ESC[[ch].pack("C")] = "\\x%02x" % ch }
 | 
			
		||||
0x00.upto(0x1f) {|ch| C_ESC[[ch].pack("C")] ||= "\\%03o" % ch }
 | 
			
		||||
0x7f.upto(0xff) {|ch| C_ESC[[ch].pack("C")] = "\\%03o" % ch }
 | 
			
		||||
C_ESC_PAT = Regexp.union(*C_ESC.keys)
 | 
			
		||||
 | 
			
		||||
def c_esc(str)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue