From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15900 invoked by alias); 13 Jan 2019 22:35:37 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 15784 invoked by uid 9078); 13 Jan 2019 22:35:36 -0000 Date: Sun, 13 Jan 2019 22:35:00 -0000 Message-ID: <20190113223536.15781.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] map WEOF to undefined rather than the control char category X-Act-Checkin: newlib-cygwin X-Git-Author: Thomas Wolff X-Git-Refname: refs/heads/master X-Git-Oldrev: 9d13a2995cb4b6fd26cd7b7a2c478ad85115e055 X-Git-Newrev: 30062d409dcc3ec19024e0a10f9fca84c581855f X-SW-Source: 2019-q1/txt/msg00006.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=30062d409dcc3ec19024e0a10f9fca84c581855f commit 30062d409dcc3ec19024e0a10f9fca84c581855f Author: Thomas Wolff Date: Sat Jan 12 11:57:59 2019 +0100 map WEOF to undefined rather than the control char category Fixes https://cygwin.com/ml/cygwin/2018-12/msg00173.html Diff: --- 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 85328ef..a8de1f1 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;