summaryrefslogtreecommitdiff
path: root/ext/nkf
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
commit5dd3a0e2dd508abfad893475efc9706381465d8a (patch)
tree30f1d5531006e2a3ee5a46b0042880c6c8c51aaa /ext/nkf
parentf827d9568507ed7b0f562be605a798a4ff0cf6f0 (diff)
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index):
use strcasecmp. [ruby-dev:34787] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf')
-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 c784a16..6720797 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;
}
}