summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-09 10:24:31 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-09 10:24:31 +0000
commitacda8279a233adec6479da7d1754a2e3829a9cc9 (patch)
tree40f8bfd52e3dc46922b96caa50b64be590581240
parentf42223c82de5726d778266ba20496a4b075916ab (diff)
Support ISblank properly
-rw-r--r--extra/locale/gen_ctype_from_glibc.c3
-rw-r--r--libc/misc/locale/_locale.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/extra/locale/gen_ctype_from_glibc.c b/extra/locale/gen_ctype_from_glibc.c
index 0488048cd..ef902d978 100644
--- a/extra/locale/gen_ctype_from_glibc.c
+++ b/extra/locale/gen_ctype_from_glibc.c
@@ -71,6 +71,7 @@ bbits_t basic_bits[] =
{ISpunct , "ISpunct" },
{ISalpha , "ISalpha" },
{ISxdigit, "ISxdigit"},
+ {ISblank, "ISblank"},
{0, NULL}
};
@@ -257,6 +258,8 @@ Defaults:\n\
x2type[i] |= ISpunct;
if(isxdigit(i))
x2type[i] |= ISxdigit;
+ if(isblank(i))
+ x2type[i] |= ISblank;
x2trans[i] = i;
if(toupper(x2trans[i]) != x2trans[i])
x2trans[i] = toupper(x2trans[i]);
diff --git a/libc/misc/locale/_locale.h b/libc/misc/locale/_locale.h
index 139a862f9..75658cc2f 100644
--- a/libc/misc/locale/_locale.h
+++ b/libc/misc/locale/_locale.h
@@ -17,6 +17,7 @@ enum
ISpunct = ISbit (5), /* 32 Punctuation. */
ISalpha = ISbit (6), /* 64 Alphabetic. */
ISxdigit = ISbit (7), /* 128 Hexnumeric. */
+ ISblank = ISbit (8), /* 256 Blank. */
};
extern const unsigned char *_uc_collate_b;