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:
Thomas Wolff 2019-01-12 11:57:59 +01:00 committed by Corinna Vinschen
parent 9d13a2995c
commit 30062d409d
1 changed files with 1 additions and 1 deletions

View File

@ -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;