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:
authorJeff Johnston <jjohnstn@redhat.com>2009-08-24 20:59:35 +0400
committerJeff Johnston <jjohnstn@redhat.com>2009-08-24 20:59:35 +0400
commit4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a (patch)
treee089402d9112063a4ef7ea5e0a33d16980fecfc7 /newlib/libc/ctype
parent11788f8ce076b1be50b22aa91b8f1302641666cb (diff)
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/libc/ctype')
-rw-r--r--newlib/libc/ctype/iswblank.c3
-rw-r--r--newlib/libc/ctype/iswspace.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/ctype/iswblank.c b/newlib/libc/ctype/iswblank.c
index 5cd37016f..2ac907f17 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 a1edbdcef..3245813f1 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 ||