diff options
author | Michael Brown | 2014-03-13 15:20:10 +0100 |
---|---|---|
committer | Michael Brown | 2014-03-13 15:21:59 +0100 |
commit | a17ee3610da87dece79292fa09266b43066ea6f3 (patch) | |
tree | fea59e88dde22c77d15999d32b7138a6fa7070e9 /src/core/vsprintf.c | |
parent | [efi] Connect driver to devices as part of installation (diff) | |
download | ipxe-a17ee3610da87dece79292fa09266b43066ea6f3.tar.gz ipxe-a17ee3610da87dece79292fa09266b43066ea6f3.tar.xz ipxe-a17ee3610da87dece79292fa09266b43066ea6f3.zip |
[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 <Marc.Delisle@cegepsherbrooke.qc.ca>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/vsprintf.c')
-rw-r--r-- | src/core/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/vsprintf.c b/src/core/vsprintf.c index 5cc72310..54811b11 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; } |