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

Emojis are not deleted or displayed properly #15265

Closed
pascal754 opened this issue Apr 29, 2023 · 2 comments
Closed

Emojis are not deleted or displayed properly #15265

pascal754 opened this issue Apr 29, 2023 · 2 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

@pascal754
Copy link

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.0

Other Software

PowerShell 7.3.4

MSYS2 MSYS_NT-10.0-22621 (installed from https://www.msys2.org/)

Steps to reproduce

Copy an emoji and paste it in PowerShell, Command Prompt, or MSYS2 tab in Windows Terminal.

Erase it using the backspace or delete key.

Move the cursor using the left and right arrow keys.

Expected Behavior

It is natural to delete an emoji as one character unit with one backspace or one delete keystroke.

Actual Behavior

  1. An emoji was copy-pasted in power shell and it requires two backspace or delete keystrokes to erase an emoji. For example, to delete 😺 (U+1F63A) when a backspace key is pressed it changes to replacement character (U+FFFD) and another backspace keystroke is needed to delete this character. The same behavior is observed when using the delete key. In addition, when left and right arrow keys are pressed to move the cursor(vertical bar or pipe), it moves halfway through the emoji. An emoji should be handled as one character.

emoji_ps

  1. When emojis were copy-pasted in command prompt they are broken and displayed two replacement character pairs. When the cursor is moved in front of the first replacement character of any pairs and for example a space is inserted then the whole emojis are displayed properly.

emoji_command_prompt

  1. When emojis were copy-pasted in MSYS2 tab (installed from https://www.msys2.org/), one backspace keystroke deletes the whole sequence of emojis but it requires two delete keystrokes to erase one emoji. However, this time an emoji changes to white square (U+25A1). Similarly, the left arrow key moves the cursor in front of the series of emojis but the right arrow key moves halfway through an emoji. When alphabets and emojis are mixed, for example aa😺😺😺, one backspace keystroke deletes one alphabet plus the series of emojis; aa😺😺😺 becomes a.
@pascal754 pascal754 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 Apr 29, 2023
@zadjii-msft
Copy link
Member

This is more or less tracked in /dup #1503, or more broadly, #190.

PSReadline might have a more specific issue on their side for tracking how emoji are handled on their side.

Thanks!

@microsoft-github-policy-service
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 labels May 1, 2023
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