mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
a66ba9b10b
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.