diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-24 16:59:35 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-24 16:59:35 +0000 |
commit | 4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a (patch) | |
tree | e089402d9112063a4ef7ea5e0a33d16980fecfc7 /newlib | |
parent | 11788f8ce076b1be50b22aa91b8f1302641666cb (diff) | |
download | newlib-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.zip newlib-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.tar.gz newlib-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.tar.bz2 |
2009-08-24 Andy Koppe <andy.koppe@gmail.com>
* libc/ctype/iswspace.c (iswspace): Include "non-breaking
space" (U+00A0).
* libc/ctype/iswblank.c (iswblank): Likewise.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/ctype/iswblank.c | 3 | ||||
-rw-r--r-- | newlib/libc/ctype/iswspace.c | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2dcd6a4..b467737 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2009-08-24 Andy Koppe <andy.koppe@gmail.com> + + * libc/ctype/iswspace.c (iswspace): Include "non-breaking + space" (U+00A0). + * libc/ctype/iswblank.c (iswblank): Likewise. + 2009-08-21 Corinna Vinschen <corinna@vinschen.de> * libc/locale/locale.c (loadlocale): Throughout check charset string diff --git a/newlib/libc/ctype/iswblank.c b/newlib/libc/ctype/iswblank.c index 5cd3701..2ac907f 100644 --- a/newlib/libc/ctype/iswblank.c +++ b/newlib/libc/ctype/iswblank.c @@ -67,7 +67,8 @@ _DEFUN(iswblank,(c), wint_t c) { #ifdef _MB_CAPABLE c = _jp2uc (c); - return (c == 0x0009 || c == 0x0020 || c == 0x1680 || + return (c == 0x0009 || c == 0x0020 || + c == 0x00A0 || c == 0x1680 || (c >= 0x2000 && c <= 0x2006) || (c >= 0x2008 && c <= 0x200b) || c == 0x205f || c == 0x3000); diff --git a/newlib/libc/ctype/iswspace.c b/newlib/libc/ctype/iswspace.c index a1edbdc..3245813 100644 --- a/newlib/libc/ctype/iswspace.c +++ b/newlib/libc/ctype/iswspace.c @@ -67,7 +67,8 @@ _DEFUN(iswspace,(c), wint_t c) { #ifdef _MB_CAPABLE c = _jp2uc (c); - return ((c >= 0x0009 && c <= 0x000d) || c == 0x0020 || c == 0x1680 || + return ((c >= 0x0009 && c <= 0x000d) || c == 0x0020 || + c == 0x00A0 || c == 0x1680 || (c >= 0x2000 && c <= 0x2006) || (c >= 0x2008 && c <= 0x200b) || c == 0x2028 || c == 0x2029 || |