Invalid handling emoji with zero-width-space and \u200b zero-width-space character. #14314

Closed
opened 2026-01-31 04:06:57 +00:00 by claunia · 2 comments
Owner

Originally created by @zagura on GitHub (Jun 22, 2021).

Windows Terminal version (or Windows build number)

10.0.18363.1556, 1.8.1521.0

Other Software

OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, (inside WSL)

Steps to reproduce

  1. echo Some$'\u200b'Text
  2. echo "🖼"and https://example.com
    Second symbol is framed-picture emoji: https://emojipedia.org/framed-picture/

Expected Behavior

  1. Some​Text (without visible space)
  2. No additional space after emoji and link https://example.com is clickable, so Ctrl + LPM would open https://example.com URL.

Actual Behavior

  1. Some Text (encoded correctly, but displayed space between words)
  2. Displayed text has additional space between emoji and "and" word. When mouse hoover, underline is moved one character to right, so here it would underline ttps://example.com (and empty character after URL). Ctrl + LPM would try to open invalid URL ttps://example.com.
Originally created by @zagura on GitHub (Jun 22, 2021). ### Windows Terminal version (or Windows build number) 10.0.18363.1556, 1.8.1521.0 ### Other Software OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, (inside WSL) ### Steps to reproduce 1) echo Some$'\u200b'Text 2) echo "🖼"and https://example.com Second symbol is framed-picture emoji: https://emojipedia.org/framed-picture/ ### Expected Behavior 1) Some​Text (without visible space) 2) No additional space after emoji and link https://example.com is clickable, so Ctrl + LPM would open https://example.com URL. ### Actual Behavior 1) Some Text (encoded correctly, but displayed space between words) 2) Displayed text has additional space between emoji and "and" word. When mouse hoover, underline is moved one character to right, so here it would underline ttps://example.com (and empty character after URL). Ctrl + LPM would try to open invalid URL ttps://example.com.
claunia added the Resolution-Duplicate label 2026-01-31 04:06:57 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 22, 2021):

Thanks! This is a huge class of issue that we're tracking in /dupe #1472 and #3546 😄

@DHowett commented on GitHub (Jun 22, 2021): Thanks! This is a huge class of issue that we're tracking in /dupe #1472 and #3546 :smile:
Author
Owner

@ghost commented on GitHub (Jun 22, 2021):

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!

@ghost commented on GitHub (Jun 22, 2021): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14314