Bug Report: clipboard bugs with some unicode characters or emoji #2259

Closed
opened 2026-01-30 22:50:50 +00:00 by claunia · 2 comments
Owner

Originally created by @zhwghl on GitHub (Jun 26, 2019).

Environment

Windows build number:  10.0.18362.175
Windows Terminal version (if applicable): 04e808fd0a5e60821af02a6dcc284e816521abf9 [04e808f]

Steps to reproduce

  1. Using Windows File Explorer, create a file with filename "🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx" under a directory (e.g. D:\folder).
  2. Launch Windows Terminal and run "cmd.exe" or "wsl.exe" command.
  3. Change directory to the folder where the file you created locates, and type "dir" or "ll" command.
  4. Check if the filename shows on the list correctly.
  5. Try to select and copy the filename from the Windows Terminal.
  6. Paste the filename you copied in Notepad.exe and check if it is "🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx"

Expected behavior

Expect to see the filename 🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx correctly displays itself with font 'Segoe UI Emoji' or 'Segoe UI Symbol' after type "dir" or "ll" command, and which should be able to be selected and copied correctly.

Actual behavior

The filename will display as something like 🀀����������������docx.
You won't get 🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx in your clipboard after you try to copy it from the Windows Terminal.

Under a wsl.exe process in Windows Terminal, the app might crash when you try to select and copy it from the list given by the "ll" command.

Originally created by @zhwghl on GitHub (Jun 26, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.175 Windows Terminal version (if applicable): 04e808fd0a5e60821af02a6dcc284e816521abf9 [04e808f] ``` # Steps to reproduce 1. Using Windows File Explorer, create a file with filename "🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx" under a directory (e.g. D:\folder). 2. Launch Windows Terminal and run "cmd.exe" or "wsl.exe" command. 3. Change directory to the folder where the file you created locates, and type "dir" or "ll" command. 4. Check if the filename shows on the list correctly. 5. Try to select and copy the filename from the Windows Terminal. 6. Paste the filename you copied in Notepad.exe and check if it is "🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx" # Expected behavior Expect to see the filename 🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx correctly displays itself with font 'Segoe UI Emoji' or 'Segoe UI Symbol' after type "dir" or "ll" command, and which should be able to be selected and copied correctly. # Actual behavior The filename will display as something like 🀀����������������docx. You won't get 🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏.docx in your clipboard after you try to copy it from the Windows Terminal. Under a wsl.exe process in Windows Terminal, the app might crash when you try to select and copy it from the list given by the "ll" command.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 26, 2019):

@carlos-zamora we may have an issue copying these characters 😄

@DHowett-MSFT commented on GitHub (Jun 26, 2019): @carlos-zamora we may have an issue copying these characters :smile:
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 28, 2020):

I can't reproduce this any longer. Please let me know if it's still an issue.

@DHowett-MSFT commented on GitHub (Jan 28, 2020): I can't reproduce this any longer. Please let me know if it's still an issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2259