diff options
author | John Baldwin <jhb@FreeBSD.org> | 2014-06-27 20:39:45 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2014-06-27 20:39:45 +0000 |
commit | 1f3691a490d5a6e2eafce45eedb3a9e656c7b2ed (patch) | |
tree | dde613fb6e86391038f65fa041a4c51417cefd8d | |
parent | 6796fe08e24a494faef2dbd61adf3e1534d03f66 (diff) |
Notes
-rw-r--r-- | sys/libkern/iconv.c | 4 | ||||
-rw-r--r-- | sys/libkern/iconv_ucs.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c index dcdb1192ef32..e4191a0749bd 100644 --- a/sys/libkern/iconv.c +++ b/sys/libkern/iconv.c @@ -168,8 +168,8 @@ iconv_lookupcs(const char *to, const char *from, struct iconv_cspair **cspp) struct iconv_cspair *csp; TAILQ_FOREACH(csp, &iconv_cslist, cp_link) { - if (strcmp(csp->cp_to, to) == 0 && - strcmp(csp->cp_from, from) == 0) { + if (strcasecmp(csp->cp_to, to) == 0 && + strcasecmp(csp->cp_from, from) == 0) { if (cspp) *cspp = csp; return 0; diff --git a/sys/libkern/iconv_ucs.c b/sys/libkern/iconv_ucs.c index 30810ebab15b..047436de351e 100644 --- a/sys/libkern/iconv_ucs.c +++ b/sys/libkern/iconv_ucs.c @@ -102,9 +102,9 @@ iconv_ucs_open(struct iconv_converter_class *dcp, if (cspf) dp->convtype |= KICONV_UCS_COMBINE; for (i = 0; unicode_family[i].name; i++) { - if (strcmp(from, unicode_family[i].name) == 0) + if (strcasecmp(from, unicode_family[i].name) == 0) dp->convtype |= unicode_family[i].from_flag; - if (strcmp(to, unicode_family[i].name) == 0) + if (strcasecmp(to, unicode_family[i].name) == 0) dp->convtype |= unicode_family[i].to_flag; } if (strcmp(ENCODING_UNICODE, ENCODING_UTF16) == 0) |