Crash when selecting some Chinese output #2630

Closed
opened 2026-01-30 23:00:38 +00:00 by claunia · 2 comments
Owner

Originally created by @huoyaoyuan on GitHub (Jul 8, 2019).

Environment

Windows build number: 10.0.18362.207
Windows Terminal version (if applicable): 0.2.1831.0, Windows Store Build

Any other software?
.Net Core SDK 3.0.100-preview6-012264
Powershell Core 6.2.1

Steps to reproduce

  1. The crash reproduces on both cmd and PSCore.
  2. Invoke some program that outputs Chinese. I used dotnet --info.
  3. Drag on the output text for selection.

Expected behavior

Chinese text can be selected normally. (using conhost)
image

Actual behavior

As soon as the drag covers or starts at Chinese character, the Terminal crashes.
image
(Dragging over the dual-width character)

Note

This does not reproduce on output of Powershell echo command, and some others.
image
Seems not directly caused by certain executables. (Some output of dotnet.exe can be selected.)
image
Not aware of whether Chinese starts with new line.
image

My system setting:

Display language = Simplified Chinese
Code page = Simplified Chinese, UTF8 enabled (Active Code Page: 65001)

Originally created by @huoyaoyuan on GitHub (Jul 8, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- 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.207 Windows Terminal version (if applicable): 0.2.1831.0, Windows Store Build Any other software? .Net Core SDK 3.0.100-preview6-012264 Powershell Core 6.2.1 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 0. The crash reproduces on both cmd and PSCore. 1. Invoke some program that outputs Chinese. I used `dotnet --info`. 2. Drag on the output text for selection. # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Chinese text can be selected normally. (using conhost) ![image](https://user-images.githubusercontent.com/5644458/60793006-5c2c8300-a199-11e9-92c3-65d5c23b2935.png) # Actual behavior <!-- What's actually happening? --> As soon as the drag covers or starts at Chinese character, the Terminal crashes. ![image](https://user-images.githubusercontent.com/5644458/60793116-9ac23d80-a199-11e9-9f6a-a84355a046ca.png) (Dragging over the dual-width `(` character) # Note This does not reproduce on output of Powershell `echo` command, and some others. ![image](https://user-images.githubusercontent.com/5644458/60793246-e248c980-a199-11e9-9c9c-ce0315eaff61.png) Seems not directly caused by certain executables. (Some output of `dotnet.exe` can be selected.) ![image](https://user-images.githubusercontent.com/5644458/60793431-4b304180-a19a-11e9-8f53-bacab05bc094.png) Not aware of whether Chinese starts with new line. ![image](https://user-images.githubusercontent.com/5644458/60793605-964a5480-a19a-11e9-93a4-08783567a6ba.png) ### My system setting: Display language = Simplified Chinese Code page = Simplified Chinese, UTF8 enabled (Active Code Page: 65001)
claunia added the Needs-TriageResolution-Duplicate labels 2026-01-30 23:00:38 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 8, 2019):

I'm fairly certain this is a dupe of #1549

@zadjii-msft commented on GitHub (Jul 8, 2019): I'm fairly certain this is a dupe of #1549
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 8, 2019):

Sure is!

@DHowett-MSFT commented on GitHub (Jul 8, 2019): Sure is!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2630