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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13667
Author: @lhecker
Created: 8/4/2022
Status: ✅ Merged
Merged: 8/4/2022
Merged by: @undefined

Base: main ← Head: dev/lhecker/12977-win32-input-surrogate


📝 Commits (1)

  • 4e34dda Fix input corruption for high code points

📊 Changes

3 files changed (+6 additions, -7 deletions)

View changed files

📝 src/terminal/parser/stateMachine.cpp (+0 -1)
📝 src/terminal/parser/stateMachine.hpp (+5 -5)
📝 src/terminal/parser/ut_parser/OutputEngineTest.cpp (+1 -1)

📄 Description

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 ✅

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13667 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 8/4/2022 **Status:** ✅ Merged **Merged:** 8/4/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/12977-win32-input-surrogate` --- ### 📝 Commits (1) - [`4e34dda`](https://github.com/microsoft/terminal/commit/4e34dda8bc0ff46578f1595a979e267b7ece827a) Fix input corruption for high code points ### 📊 Changes **3 files changed** (+6 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/terminal/parser/stateMachine.cpp` (+0 -1) 📝 `src/terminal/parser/stateMachine.hpp` (+5 -5) 📝 `src/terminal/parser/ut_parser/OutputEngineTest.cpp` (+1 -1) </details> ### 📄 Description 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 ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:36:23 +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#29699