[PR #13667] Fix input corruption for high code points #29704

Closed
opened 2026-01-31 09:36:25 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13667

State: closed
Merged: Yes


We must use 65535 as MAX_PARAMETER_VALUE in order for us to properly parse
win32-input-mode sequences, which transmit UTF-16 characters as parameters.

Closes #12977

Validation Steps Performed

  • Call SendInput with 🙁 (L'\xD83D', L'\xDE41')
  • 🙁 appears on the input line
**Original Pull Request:** https://github.com/microsoft/terminal/pull/13667 **State:** closed **Merged:** Yes --- We must use 65535 as `MAX_PARAMETER_VALUE` in order for us to properly parse win32-input-mode sequences, which transmit UTF-16 characters as parameters. Closes #12977 ## Validation Steps Performed * Call `SendInput` with 🙁 (`L'\xD83D'`, `L'\xDE41'`) * 🙁 appears on the input line ✅
claunia added the pull-request label 2026-01-31 09:36:25 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29704