From 4b4a1363aa1a2ab778eb1eeb7db96f2d96b0316a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 24 Aug 2009 16:59:35 +0000 Subject: [PATCH] 2009-08-24 Andy Koppe * libc/ctype/iswspace.c (iswspace): Include "non-breaking space" (U+00A0). * libc/ctype/iswblank.c (iswblank): Likewise. --- newlib/ChangeLog | 6 ++++++ newlib/libc/ctype/iswblank.c | 3 ++- newlib/libc/ctype/iswspace.c | 3 ++- 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 + + * libc/ctype/iswspace.c (iswspace): Include "non-breaking + space" (U+00A0). + * libc/ctype/iswblank.c (iswblank): Likewise. + 2009-08-21 Corinna Vinschen * 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 || -- 2.43.5