From 1ee6654e5058038cd97e93d7a1e3c4337820eb9d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 27 Mar 2018 12:35:27 +0200 Subject: [PATCH] newlib: fix iswupper_l in !_MB_CAPABLE case Signed-off-by: Corinna Vinschen --- newlib/libc/ctype/iswupper_l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/ctype/iswupper_l.c b/newlib/libc/ctype/iswupper_l.c index 091b6e648..e772f929b 100644 --- a/newlib/libc/ctype/iswupper_l.c +++ b/newlib/libc/ctype/iswupper_l.c @@ -15,6 +15,6 @@ iswupper_l (wint_t c, struct __locale_t *locale) enum category cat = category (c); return cat == CAT_Lu || (cat == CAT_LC && towupper (c) == c); #else - return c < 0x100 ? islower (c) : 0; + return c < 0x100 ? isupper (c) : 0; #endif /* _MB_CAPABLE */ }