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-04-09 14:37:58 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-04-09 14:37:58 +0400
commita29a76934280b14aa7f13bbb3e86b1a8a2bcdfb7 (patch)
treeac75b5c4c52c57f827c51e86ea4602bd48e8150f /newlib/libc/ctype/isupper.c
parent2d647173bb2056dfd87a184ac2b6e5ded660a466 (diff)
* libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
* libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages 720, 862, 874, 1255, and 1256 to _U|_L. Fix a couple of incorrect class mappings. * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables 6, 8, and 11 to _U|_L. Fix a couple of incorrect class mappings. * libc/ctype/isblank.c (isblank): Special case TAB. * libc/ctype/islower.c (islower): Check explicitely for _L flag only in (_U|_L). * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag. * libc/include/ctype.h (islower): Same in macro. (isupper): Ditto. (isblank): Special case TAB. Redefine macro for GCC only.
Diffstat (limited to 'newlib/libc/ctype/isupper.c')
-rw-r--r--newlib/libc/ctype/isupper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/isupper.c b/newlib/libc/ctype/isupper.c
index d6cc6ecc4..4994af215 100644
--- a/newlib/libc/ctype/isupper.c
+++ b/newlib/libc/ctype/isupper.c
@@ -38,6 +38,6 @@ No supporting OS subroutines are required.
int
_DEFUN(isupper,(c),int c)
{
- return(__ctype_ptr__[c+1] & _U);
+ return ((__ctype_ptr__[c+1] & (_U|_L)) == _U);
}