summaryrefslogtreecommitdiff
path: root/ext/iconv/iconv.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-07 11:39:29 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-07 11:39:29 +0000
commitc4d502c93150ca3eba4612956dd63915f3b0610c (patch)
tree2cbc3ff6191d34cf69e1d2aee5dce2168e2e5e0d /ext/iconv/iconv.c
parente735472d1f22fca2e2103b6d3868c101c54a2e2d (diff)
* ext/iconv/iconv.c (map_charset): make case sensitive.
ext/iconv/charset_alias.rb (charset_alias): don't ignore config.charset's information. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r--ext/iconv/iconv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index 8e978b8730..90bf024afb 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -110,9 +110,9 @@ map_charset
VALUE val = *code;
if (RHASH(charset_map)->tbl && RHASH(charset_map)->tbl->num_entries) {
- val = rb_funcall2(val, rb_intern("downcase"), 0, 0);
- StringValuePtr(val);
- if (st_lookup(RHASH(charset_map)->tbl, val, &val)) {
+ 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;
}