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 件 担当者 0 名 GitHub で見る
area:input-keyboard area:platform-windows area:terminal-rendering
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。