newlib: fix iswupper_l in !_MB_CAPABLE case
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
ee49870a7d
commit
1ee6654e50
@ -15,6 +15,6 @@ iswupper_l (wint_t c, struct __locale_t *locale)
|
|||||||
enum category cat = category (c);
|
enum category cat = category (c);
|
||||||
return cat == CAT_Lu || (cat == CAT_LC && towupper (c) == c);
|
return cat == CAT_Lu || (cat == CAT_LC && towupper (c) == c);
|
||||||
#else
|
#else
|
||||||
return c < 0x100 ? islower (c) : 0;
|
return c < 0x100 ? isupper (c) : 0;
|
||||||
#endif /* _MB_CAPABLE */
|
#endif /* _MB_CAPABLE */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user