diff options
author | Thomas Wolff <towo@towo.net> | 2019-01-12 11:57:59 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-01-13 23:33:51 +0100 |
commit | 30062d409dcc3ec19024e0a10f9fca84c581855f (patch) | |
tree | dbd095a24554e590bcc69bc9e4742b7b2d528274 | |
parent | 9d13a2995cb4b6fd26cd7b7a2c478ad85115e055 (diff) | |
download | cygnal-30062d409dcc3ec19024e0a10f9fca84c581855f.tar.gz cygnal-30062d409dcc3ec19024e0a10f9fca84c581855f.tar.bz2 cygnal-30062d409dcc3ec19024e0a10f9fca84c581855f.zip |
map WEOF to undefined rather than the control char category
Fixes https://cygwin.com/ml/cygwin/2018-12/msg00173.html
-rw-r--r-- | newlib/libc/ctype/categories.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/categories.c b/newlib/libc/ctype/categories.c index 85328ef2e..a8de1f129 100644 --- a/newlib/libc/ctype/categories.c +++ b/newlib/libc/ctype/categories.c @@ -19,7 +19,7 @@ bisearch_cat(wint_t ucs, const struct _category *table, int max) int mid; if (ucs < table[0].first || ucs > table[max].first + table[max].delta) - return 0; + return -1; while (max >= min) { mid = (min + max) / 2; |