4
0
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:
Thomas Wolff 2019-01-12 11:57:59 +01:00 committed by Corinna Vinschen
parent 9d13a2995c
commit 30062d409d

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;