Commit 1b60f10b authored by Nagy Tibor's avatar Nagy Tibor

vesad: Fix Unicode character input

Characters beyond 0x80 now properly encoded as UTF-8.
parent 33fc507b
...@@ -105,7 +105,8 @@ impl Screen for TextScreen { ...@@ -105,7 +105,8 @@ impl Screen for TextScreen {
}; };
if c != '\0' { 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());
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment