mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +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:
@@ -75,7 +75,7 @@ void _wputch ( WINDOW *win, chtype ch, int wrap ) {
|
||||
* @v wrap wrap "switch"
|
||||
*/
|
||||
void _wputc ( WINDOW *win, char c, int wrap ) {
|
||||
_wputch ( win, ( c | win->attrs ), wrap );
|
||||
_wputch ( win, ( ( ( unsigned char ) c ) | win->attrs ), wrap );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user