Skip to content

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

@0xeeeeeeeeeeee

Description

@0xeeeeeeeeeeee

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:

_2026_05_18_22_38_52_409.-.Trim.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminalarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions