about summary refs log tree commit diff
path: root/iconv/gconv_conf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-22 13:02:12 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-22 13:02:12 +0000
commitbd4848fb22d5125ef9717b152097d26c855682f4 (patch)
treea2baee82a2a8726a3e5ca16fd1b35cd26c0fd372 /iconv/gconv_conf.c
parente18db2b0eec02e478cfaaed5a7ac71bef4fccc6a (diff)
downloadglibc-bd4848fb22d5125ef9717b152097d26c855682f4.tar.gz
glibc-bd4848fb22d5125ef9717b152097d26c855682f4.tar.xz
glibc-bd4848fb22d5125ef9717b152097d26c855682f4.zip
Update.
1999-01-22  Ulrich Drepper  <drepper@cygnus.com>

	* iconv/gconv_conf.c (add_alias): Convert names to uppercase before
	adding into search tree.
	(add_module): Likewise.
	* iconv/iconv_open.c: Likewise.
	* iconv/gconv_db.c: Change all __strcasecmp to strcmp.
	* iconv/skeleton.c (gconv_init): Likewise.
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';