Recognizing of UTF-8 partials in til :: u8u16 may fail #6560

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

Originally created by @german-one on GitHub (Feb 21, 2020).

Originally assigned to: @german-one on GitHub.

Steps to reproduce

@j4james discovered that printf "\xE2"; printf "\x98\xBA\n" failed to output the expected glyph using a build from the latest source. See https://github.com/microsoft/terminal/issues/1851#issuecomment-588557757
I was able to reproduce this issue by updating the unit test using the same byte sequences.

Expected behavior

Shall print a single 'WHITE SMILING FACE' (U+263A).

Actual behavior

Prints 'REPLACEMENT CHARACTER' (U+FFFD) three times in a row.

Originally created by @german-one on GitHub (Feb 21, 2020). Originally assigned to: @german-one on GitHub. # Steps to reproduce <!-- A description of how to trigger this bug. --> @j4james discovered that `printf "\xE2"; printf "\x98\xBA\n"` failed to output the expected glyph using a build from the latest source. See https://github.com/microsoft/terminal/issues/1851#issuecomment-588557757 I was able to reproduce this issue by updating the unit test using the same byte sequences. # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Shall print a single 'WHITE SMILING FACE' (U+263A). # Actual behavior <!-- What's actually happening? --> Prints 'REPLACEMENT CHARACTER' (U+FFFD) three times in a row.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6560