github / github/copilot-cli

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

Ouverte
#3,369 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
area:input-keyboard area:platform-windows area:terminal-rendering
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### 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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.