vesad: Fix Unicode character input
Characters beyond 0x80 now properly encoded as UTF-8.
This commit is contained in:
@@ -105,7 +105,8 @@ impl Screen for TextScreen {
|
||||
};
|
||||
|
||||
if c != '\0' {
|
||||
buf.extend_from_slice(&[c as u8]);
|
||||
let mut b = [0; 4];
|
||||
buf.extend_from_slice(c.encode_utf8(&mut b).as_bytes());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user