From: Craig Small Date: Mon, 28 Nov 2011 11:39:09 +0000 (+1100) Subject: Watch uses unsigned chars to be 8bit clean X-Git-Tag: v3.3.1~13^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0ed746267f7d510037825d1a818a4c48882c3c0;p=procps-ng Watch uses unsigned chars to be 8bit clean Taken from the Debian patch watch_8bitchar --- diff --git a/watch.c b/watch.c index 1e050dc6..af7d2620 100644 --- a/watch.c +++ b/watch.c @@ -296,9 +296,9 @@ main(int argc, char *argv[]) move(y, x); if (option_differences) { chtype oldch = inch(); - char oldc = oldch & A_CHARTEXT; + unsigned char oldc = oldch & A_CHARTEXT; attr = !first_screen - && ((char)c != oldc + && ((unsigned char)c != oldc || (option_differences_cumulative && (oldch & A_ATTRIBUTES)));