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.
This commit is contained in:
parent
11788f8ce0
commit
4b4a1363aa
|
@ -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>
|
2009-08-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/locale/locale.c (loadlocale): Throughout check charset string
|
* libc/locale/locale.c (loadlocale): Throughout check charset string
|
||||||
|
|
|
@ -67,7 +67,8 @@ _DEFUN(iswblank,(c), wint_t c)
|
||||||
{
|
{
|
||||||
#ifdef _MB_CAPABLE
|
#ifdef _MB_CAPABLE
|
||||||
c = _jp2uc (c);
|
c = _jp2uc (c);
|
||||||
return (c == 0x0009 || c == 0x0020 || c == 0x1680 ||
|
return (c == 0x0009 || c == 0x0020 ||
|
||||||
|
c == 0x00A0 || c == 0x1680 ||
|
||||||
(c >= 0x2000 && c <= 0x2006) ||
|
(c >= 0x2000 && c <= 0x2006) ||
|
||||||
(c >= 0x2008 && c <= 0x200b) ||
|
(c >= 0x2008 && c <= 0x200b) ||
|
||||||
c == 0x205f || c == 0x3000);
|
c == 0x205f || c == 0x3000);
|
||||||
|
|
|
@ -67,7 +67,8 @@ _DEFUN(iswspace,(c), wint_t c)
|
||||||
{
|
{
|
||||||
#ifdef _MB_CAPABLE
|
#ifdef _MB_CAPABLE
|
||||||
c = _jp2uc (c);
|
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 >= 0x2000 && c <= 0x2006) ||
|
||||||
(c >= 0x2008 && c <= 0x200b) ||
|
(c >= 0x2008 && c <= 0x200b) ||
|
||||||
c == 0x2028 || c == 0x2029 ||
|
c == 0x2028 || c == 0x2029 ||
|
||||||
|
|
Loading…
Reference in New Issue