-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in utf16_to_utf8 for zero length strings #112154
Conversation
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.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thomcc (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Fixes #112121. |
Nice catch, thanks. @bors r+ rollup |
…omcc 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.
…omcc 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.
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#111496 (Extra context for unreachable_pub lint) - rust-lang#111802 (Make `x test --dry-run` less verbose) - rust-lang#112133 (Migrate GUI colors test to original CSS color format) - rust-lang#112146 (Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set) - rust-lang#112147 (add inline-const test for elided lifetimes being infer vars) - rust-lang#112154 (Fix bug in utf16_to_utf8 for zero length strings) - rust-lang#112155 (Improve CGU debug printing.) - rust-lang#112173 (Mention GuillaumeGomez in case GUI tests are updated) r? `@ghost` `@rustbot` modify labels: rollup
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.