Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji breaks with line breaks #18216

Closed
gcgbarbosa opened this issue Nov 19, 2024 · 5 comments
Closed

Emoji breaks with line breaks #18216

gcgbarbosa opened this issue Nov 19, 2024 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@gcgbarbosa
Copy link

Windows Terminal version

1.21.2911.0

Windows build number

10.0.26100.2033

Other Software

zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

Steps to reproduce

  1. Write a sentence with an emoji.
  2. Resize the window horizontally until you get the same behavior in the image below.

Image

Expected Behavior

The emoji should be rendered correctly, either on the same line or next line.

Actual Behavior

The emoji is not displayed correctly. Half of the emoji is rendered on the same line, and ️the other half is an unrecognized symbol.

@gcgbarbosa gcgbarbosa added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Nov 19, 2024
@gcgbarbosa
Copy link
Author

gcgbarbosa commented Nov 19, 2024

just found #18167, but maybe this is still relevant?

@DHowett
Copy link
Member

DHowett commented Nov 19, 2024

Which emoji is that/?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 19, 2024
@gcgbarbosa
Copy link
Author

gcgbarbosa commented Nov 19, 2024

☁️, but the problem seems related to UTF-16. I've tested with UTF-8 and it works with no issue.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Nov 19, 2024
@DHowett
Copy link
Member

DHowett commented Nov 19, 2024

FWIW, Terminal stores everything as UTF-16... even if the application writing to it writes UTF-8.

As I can't reproduce this in 1.22 I am guessing it was fixed in #16916, where we rewrote our handling of text that takes multiple code units. I'd encourage you to try it out in Windows Terminal Preview!

/dup #8000

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Attention The core contributors need to come back around and look at this ASAP. labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants