From a17ee3610da87dece79292fa09266b43066ea6f3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 13 Mar 2014 14:20:10 +0000 Subject: [console] Fix display of characters with top bit set Inhibit implicit sign-padding of characters with the top bit set (e.g. accented characters), which confuses the mucurses library by colliding with the bits used to store character attributes and colours. Reported-by: Marc Delisle Signed-off-by: Michael Brown --- src/core/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/vsprintf.c b/src/core/vsprintf.c index 5cc723108..54811b11b 100644 --- a/src/core/vsprintf.c +++ b/src/core/vsprintf.c @@ -167,7 +167,7 @@ static char * format_decimal ( char *end, signed long num, int width, * Call's the printf_context::handler() method and increments * printf_context::len. */ -static inline void cputchar ( struct printf_context *ctx, unsigned int c ) { +static inline void cputchar ( struct printf_context *ctx, unsigned char c ) { ctx->handler ( ctx, c ); ++ctx->len; } -- cgit v1.2.3-55-g7522