summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2014-03-13 15:20:10 +0100
committerMichael Brown2014-03-13 15:21:59 +0100
commita17ee3610da87dece79292fa09266b43066ea6f3 (patch)
treefea59e88dde22c77d15999d32b7138a6fa7070e9 /src/hci/mucurses
parent[efi] Connect driver to devices as part of installation (diff)
downloadipxe-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/hci/mucurses')
-rw-r--r--src/hci/mucurses/mucurses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/mucurses/mucurses.c b/src/hci/mucurses/mucurses.c
index c368b763..b67445ba 100644
--- a/src/hci/mucurses/mucurses.c
+++ b/src/hci/mucurses/mucurses.c
@@ -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 );
}
/**