ReadConsoleA use with PeekConsoleInput returns a string with leading garbage #12626
Labels
Area-Input
Related to input processing (key presses, mouse, etc.)
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Priority-2
A description (P2)
Product-Conhost
For issues in the Console codebase
Milestone
Windows Terminal version
1.11.3471.0 / 1.13.10395.0
Windows build number
10.0.19043.1526
Other Software
ruby.exe seems to be affected this issue.
https://bugs.ruby-lang.org/issues/18588
command prompt window also wrong.
Legacy Console mode
enabled command prompt works fine.Steps to reproduce
test program(test.cpp)
Expected Behavior
run test.exe and input text, hit enter. hexadecimal codes are printed.
Actual Behavior
<a0><ff>
is garbage.The text was updated successfully, but these errors were encountered: