-
Notifications
You must be signed in to change notification settings - Fork 9.2k
ReadFile/ReadConsoleA append U+FFFD to each emoji read in UTF-8 #19436
Copy link
Copy link
Open
Labels
Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Related to output processing (inserting text into buffer, retrieving buffer text, etc.)Impact-CorrectnessIt be wrong.It be wrong.Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-2A description (P2)A description (P2)Product-ConhostFor issues in the Console codebaseFor issues in the Console codebase
Milestone
Metadata
Metadata
Assignees
Labels
Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Related to output processing (inserting text into buffer, retrieving buffer text, etc.)Impact-CorrectnessIt be wrong.It be wrong.Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-2A description (P2)A description (P2)Product-ConhostFor issues in the Console codebaseFor issues in the Console codebase
Windows Terminal version
1.23.250825001
Windows build number
10.0.26100.0
Other Software
No response
Steps to reproduce
Test code:
Run the above code inside Windows Terminal (or in
conhost.exe- the result is the same). Type in some emojis; a possible output is:Observe that each emoji read is followed by the
ef bf bdsequence (the UTF-8 encoding of the replacement character).Expected Behavior
These replacement characters should not appear in the read byte stream.
Actual Behavior
For some unknown reason they do appear. If there is a bug in the test code above, please let me know.