mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/iconv/iconv.c (map_charset): always ensure code is a String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									65fed5dad3
								
							
						
					
					
						commit
						54524ed8f0
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -113,14 +113,10 @@ map_charset
 | 
			
		|||
	VALUE key = rb_funcall2(val, rb_intern("downcase"), 0, 0);
 | 
			
		||||
	StringValuePtr(key);
 | 
			
		||||
	if (st_lookup(RHASH(charset_map)->tbl, key, &val)) {
 | 
			
		||||
	    StringValuePtr(val);
 | 
			
		||||
	    *code = val;
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
	StringValuePtr(val);
 | 
			
		||||
    }
 | 
			
		||||
    return RSTRING(val)->ptr;
 | 
			
		||||
    return StringValuePtr(*code);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static iconv_t
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue