From a86ec54da25374b2416dc792045c32604a24ee2e Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 29 Oct 2006 15:22:39 +0000 Subject: [PATCH] Actually it makes more sense to just drop characters > 255 instead of taking the lower 8 bits. --- pdcurses/getstr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pdcurses/getstr.c b/pdcurses/getstr.c index 3ec90558..d2ad351d 100644 --- a/pdcurses/getstr.c +++ b/pdcurses/getstr.c @@ -13,7 +13,7 @@ #include -RCSID("$Id: getstr.c,v 1.35 2006/10/29 13:59:39 wmcbrine Exp $"); +RCSID("$Id: getstr.c,v 1.36 2006/10/29 15:22:39 wmcbrine Exp $"); /*man-start************************************************************** @@ -188,9 +188,7 @@ int wgetnstr(WINDOW *win, char *str, int n) break; default: - ch &= 0xff; - - if (chars < n && !SP->key_code) + if (chars < n && !SP->key_code && ch < 0x100) { *p++ = ch; if (oldecho)