Further refine ToUnicodeEx calls in CharacterFromKeyEvent #4965

Open
opened 2026-01-31 00:01:47 +00:00 by claunia · 0 comments
Owner

Originally created by @miniksa on GitHub (Nov 13, 2019).

To fix the latter tangential issue, I'd like to propose that we simply return the first character of the output buffer, if the return value of ToUnicodeEx is >1. What do you think? (I'd open a seperate PR for this.)

That sounds reasonable based on the analysis above.

Originally posted by @miniksa in https://github.com/microsoft/terminal/pull/3117#issuecomment-543234440

This represents fixing the issue described in #3117 where other forms of multiple copies can occur based on the responses from ToUnicodeEx.

Originally created by @miniksa on GitHub (Nov 13, 2019). > To fix the latter tangential issue, I'd like to propose that we simply return the first character of the output buffer, if the return value of `ToUnicodeEx` is >1. What do you think? (I'd open a seperate PR for this.) That sounds reasonable based on the analysis above. _Originally posted by @miniksa in https://github.com/microsoft/terminal/pull/3117#issuecomment-543234440_ This represents fixing the issue described in #3117 where other forms of multiple copies can occur based on the responses from ToUnicodeEx.
claunia added the Resolution-Fix-CommittedIssue-BugArea-InputProduct-Terminal labels 2026-01-31 00:01:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4965