mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +03:00
[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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user