about summary refs log tree commit diff
path: root/intl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-08-11 14:04:08 -0400
committerUlrich Drepper <drepper@gmail.com>2011-08-11 14:04:08 -0400
commit89edf2e9119b57fc404891670d2bc47bdfdb61ef (patch)
treea679971e647b0c56d6151b2dfd9b362f6aa76e7d /intl
parent2df1f7be58b2dfc80d29e7d53415df48949340ce (diff)
downloadglibc-89edf2e9119b57fc404891670d2bc47bdfdb61ef.tar.gz
glibc-89edf2e9119b57fc404891670d2bc47bdfdb61ef.tar.xz
glibc-89edf2e9119b57fc404891670d2bc47bdfdb61ef.zip
Locale-independent parsing in libintl
Diffstat (limited to 'intl')
-rw-r--r--intl/l10nflist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
index 2c06a91113..a38e0efe90 100644
--- a/intl/l10nflist.c
+++ b/intl/l10nflist.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2002, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2002, 2004, 2005, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
 
@@ -134,7 +134,7 @@ argz_next__ (argz, argz_len, entry)
   if (entry)
     {
       if (entry < argz + argz_len)
-        entry = strchr (entry, '\0') + 1;
+	entry = strchr (entry, '\0') + 1;
 
       return entry >= argz + argz_len ? NULL : (char *) entry;
     }
@@ -334,11 +334,11 @@ _nl_normalize_codeset (codeset, name_len)
   size_t cnt;
 
   for (cnt = 0; cnt < name_len; ++cnt)
-    if (isalnum ((unsigned char) codeset[cnt]))
+    if (__isalnum_l ((unsigned char) codeset[cnt], _nl_C_locobj_ptr))
       {
 	++len;
 
-	if (isalpha ((unsigned char) codeset[cnt]))
+	if (__isalpha_l ((unsigned char) codeset[cnt], _nl_C_locobj_ptr))
 	  only_digit = 0;
       }
 
@@ -352,9 +352,9 @@ _nl_normalize_codeset (codeset, name_len)
 	wp = retval;
 
       for (cnt = 0; cnt < name_len; ++cnt)
-	if (isalpha ((unsigned char) codeset[cnt]))
+	if (__isalpha_l ((unsigned char) codeset[cnt], _nl_C_locobj_ptr))
 	  *wp++ = tolower ((unsigned char) codeset[cnt]);
-	else if (isdigit ((unsigned char) codeset[cnt]))
+	else if (__isdigit_l ((unsigned char) codeset[cnt], _nl_C_locobj_ptr))
 	  *wp++ = codeset[cnt];
 
       *wp = '\0';