Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-23 14:28:12 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-23 14:28:12 +0300
commit9accf06e036dbf9263308130877b6432a88b8ebe (patch)
tree160a4e70f851a5c8458440592b0269dcb1756d36 /newlib/libc/locale/locale.c
parent9a1109002a43f066a719c6051fbeab692eff62a5 (diff)
* libc/locale/locale.c (loadlocale): Fix typo in language and
territory evaluation.
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r--newlib/libc/locale/locale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 7c92d0c49..a4cd30eb9 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -391,16 +391,16 @@ loadlocale(struct _reent *p, int category)
/* Don't use ctype macros here, they might be localized. */
/* Language */
- if (c[0] <= 'a' || c[0] >= 'z'
- || c[1] <= 'a' || c[1] >= 'z')
+ if (c[0] < 'a' || c[0] > 'z'
+ || c[1] < 'a' || c[1] > 'z')
return NULL;
c += 2;
if (c[0] == '_')
{
/* Territory */
++c;
- if (c[0] <= 'A' || c[0] >= 'Z'
- || c[1] <= 'A' || c[1] >= 'Z')
+ if (c[0] < 'A' || c[0] > 'Z'
+ || c[1] < 'A' || c[1] > 'Z')
return NULL;
c += 2;
}