mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	file.c: fix typos
* file.c (rb_file_expand_path_internal): fix typos. [ruby-core:71111] [Bug #11601] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									c92322b537
								
							
						
					
					
						commit
						a3ac9d0bb6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								file.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								file.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3558,9 +3558,9 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
 | 
			
		|||
	*p = '/';
 | 
			
		||||
#endif
 | 
			
		||||
	rb_str_set_len(result, p - buf + strlen(p));
 | 
			
		||||
	encidx = ENC_GET(result);
 | 
			
		||||
	encidx = ENCODING_GET(result);
 | 
			
		||||
	tmp = result;
 | 
			
		||||
	if (encidx != ENCIDX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) {
 | 
			
		||||
	if (encidx != ENCINDEX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) {
 | 
			
		||||
	    tmp = rb_str_encode_ospath(result);
 | 
			
		||||
	}
 | 
			
		||||
	len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue