mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
map WEOF to undefined rather than the control char category
Fixes https://cygwin.com/ml/cygwin/2018-12/msg00173.html
This commit is contained in:
parent
9d13a2995c
commit
30062d409d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user