github / github/copilot-cli

After copying Chinese, Japanese, or Korean from the terminal, pasting the content into the terminal may result in garbled text.

未關閉
#3,369 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
area:input-keyboard area:platform-windows area:terminal-rendering
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

When I copy Chinese, Japanese, or Korean from the terminal, there is a chance that pasting the content directly into the terminal will result in garbled text.

The scope of this bug includes both the model's own responses and the content in the input box.

Copying Chinese character/Kanji from the input box and then pasting it almost 100% results in garbled text.

Pasting the text outside the terminal does not cause any issues, and text copied from outside the terminal almost never encounters this problem.

see this video:

https://github.com/user-attachments/assets/3b5c97d3-2511-468a-b3a5-99ccb68f61c7

### Affected version

GitHub Copilot CLI 1.0.48.

### Steps to reproduce the behavior

1. select some CJK text from terminal, then right-click to copy
2. Paste it by right-click
3. There is high a chance that pasting the content will result in garbled text

### Expected behavior

All text appeared in it's origin content

### Additional context

I'm using Windows Terminal 1.24.11321.0, OS Locale is Simplified Chinese.

貢獻指南

開啟貢獻指南

研究方向

報告中沒有指定檔案、測試或進入點。在 Windows Terminal 上的 GitHub Copilot CLI 1.0.48 中,分別使用從模型回應和輸入框複製的中文、日文或韓文來重現此問題,然後追蹤終端機的複製/貼上處理流程;當文字往返傳輸且不出現亂碼時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。