public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] map WEOF to undefined rather than the control char category Date: Sun, 13 Jan 2019 22:35:00 -0000 [thread overview] Message-ID: <20190113223536.15781.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=30062d409dcc3ec19024e0a10f9fca84c581855f commit 30062d409dcc3ec19024e0a10f9fca84c581855f Author: Thomas Wolff <towo@towo.net> 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;
reply other threads:[~2019-01-13 22:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190113223536.15781.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).