rust-lang / rust-playground

The Rust Playground
https://play.rust-lang.org/
Apache License 2.0
1.2k stars 203 forks source link

Deal with non-UTF-8 bytes after valid UTF-8 bytes #1034

Closed shepmaster closed 6 months ago

shepmaster commented 6 months ago

If the program outputs a little bit of UTF-8 content and then a bunch on non-UTF-8 content, it's possible that we'd have 4 or more incomplete bytes. This means that the previous assertion was overzealous.