summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-08-24 16:59:35 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-08-24 16:59:35 +0000
commit4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a (patch)
treee089402d9112063a4ef7ea5e0a33d16980fecfc7
parent11788f8ce076b1be50b22aa91b8f1302641666cb (diff)
downloadcygnal-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.tar.gz
cygnal-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.tar.bz2
cygnal-4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a.zip
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.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/ctype/iswblank.c3
-rw-r--r--newlib/libc/ctype/iswspace.c3
3 files changed, 10 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 2dcd6a483..b4677377c 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 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 ||