mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-29 21:55:30 +00:00
Fix bug in utf16_to_utf8 for zero length strings This fixes the behavior of sending EOF by pressing Ctrl+Z => Enter in a windows console. Previously, that would trip the unpaired surrogate error, whereas now we correctly detect EOF.