[PATCH] map WEOF to undefined rather than the control char category
Thomas Wolff <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
map WEOF to undefined rather than the control char category, to fix https://cygwin.com/ml/cygwin/2018-12/msg00173.html
0001-map-WEOF-to-undefined-rather-than-the-control-char-c.patch
(text/plain, 831 B)
From 0f6ccd10b3d6fe2ab71b18686581f903898c7388 Mon Sep 17 00:00:00 2001 From: Thomas Wolff <[email protected]> Date: Sat, 12 Jan 2019 11:57:59 +0100 Subject: [PATCH] map WEOF to undefined rather than the control char category, to fix https://cygwin.com/ml/cygwin/2018-12/msg00173.html --- newlib/libc/ctype/categories.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.0