summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-21 08:48:10 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-21 08:48:10 +0000
commit1d7e2fbe2629f4f8a20a091bc85347f0a425c613 (patch)
tree30f1d5531006e2a3ee5a46b0042880c6c8c51aaa /ext
parentb295753888d25365090c4e8e0385c84103e67e85 (diff)
downloadruby-1d7e2fbe2629f4f8a20a091bc85347f0a425c613.tar.gz
ruby-1d7e2fbe2629f4f8a20a091bc85347f0a425c613.tar.xz
ruby-1d7e2fbe2629f4f8a20a091bc85347f0a425c613.zip
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index):
use strcasecmp. [ruby-dev:34787] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/nkf/nkf-utf8/nkf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c
index c784a164b..6720797db 100644
--- a/ext/nkf/nkf-utf8/nkf.c
+++ b/ext/nkf/nkf-utf8/nkf.c
@@ -678,7 +678,7 @@ nkf_enc_find_index(const char *name)
int i, index = -1;
if (*name == 'X' && *(name+1) == '-') name += 2;
for (i = 0; encoding_name_to_id_table[i].id >= 0; i++) {
- if (strcmp(name, encoding_name_to_id_table[i].name) == 0) {
+ if (strcasecmp(name, encoding_name_to_id_table[i].name) == 0) {
return encoding_name_to_id_table[i].id;
}
}