wstr: All characters should be decoded before being pushed to the wstring buffer

This commit is contained in:
EmperorBale 2022-07-15 18:21:22 -07:00 committed by Mike Welsh
parent efa8dbbc40
commit ea79f98eb5
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ impl WString {
} else {
let mut buf = Vec::new();
buf.extend_from_slice(ascii);
buf.extend(tail.iter());
buf.extend(DecodeAvmUtf8::new(tail).map(|c| c as u8));
Self::from_buf(buf)
}
}