aboutsummaryrefslogtreecommitdiff
path: root/iconv/gconv_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/gconv_conf.c')
-rw-r--r--iconv/gconv_conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
index 24ec14aea8..307bf8a274 100644
--- a/iconv/gconv_conf.c
+++ b/iconv/gconv_conf.c
@@ -177,7 +177,7 @@ add_alias (char *rp, void *modules)
++rp;
from = wp = rp;
while (*rp != '\0' && !isspace (*rp))
- ++rp;
+ *wp = toupper (*rp++);
if (*rp == '\0')
/* There is no `to' string on the line. Ignore it. */
return;
@@ -186,7 +186,7 @@ add_alias (char *rp, void *modules)
while (isspace (*rp))
++rp;
while (*rp != '\0' && !isspace (*rp))
- *wp++ = *rp++;
+ *wp++ = toupper (*rp++);
if (to == wp)
/* No `to' string, ignore the line. */
return;
@@ -307,6 +307,7 @@ add_module (char *rp, const char *directory, size_t dir_len, void **modules,
if (!isalnum (*rp) && *rp != '-' && *rp != '/' && *rp != '.'
&& *rp != '_' && *rp != '(' && *rp != ')')
from_is_regex = 1;
+ *rp = toupper (*rp);
++rp;
}
if (*rp == '\0')
@@ -316,7 +317,7 @@ add_module (char *rp, const char *directory, size_t dir_len, void **modules,
while (isspace (*rp))
++rp;
while (*rp != '\0' && !isspace (*rp))
- *wp++ = *rp++;
+ *wp++ = toupper (*rp++);
if (*rp == '\0')
return;
*wp++ = '\0';