vesad: Fix Unicode character input

Characters beyond 0x80 now properly encoded as UTF-8.
This commit is contained in:
Tibor Nagy
2018-02-06 05:02:55 +01:00
parent 33fc507b6a
commit 1b60f10b0e
+2 -1
View File
@@ -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());
}
}
}