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…
Reference in New Issue