Further refine ToUnicodeEx calls in CharacterFromKeyEvent #4968

Closed
opened 2026-01-31 00:01:50 +00:00 by claunia · 2 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:50 +00:00
Author
Owner

@miniksa commented on GitHub (Nov 13, 2019):

@lhecker, here's the follow on.

@miniksa commented on GitHub (Nov 13, 2019): @lhecker, here's the follow on.
Author
Owner

@ghost commented on GitHub (Apr 22, 2020):

:tada:This issue was addressed in #4192, which has now been successfully released as Windows Terminal Preview v0.11.1121.0.🎉

Handy links:

@ghost commented on GitHub (Apr 22, 2020): :tada:This issue was addressed in #4192, which has now been successfully released as `Windows Terminal Preview v0.11.1121.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1121.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4968