Skip to content

Paste in PowerShell drops certain characters like "【】|" #9263

@czphoenix

Description

@czphoenix

Environment

Windows build number: Microsoft Windows NT 10.0.19042.0
Windows Terminal version (if applicable):1.5.10411.0
PowerShell 7.1.2
Windows PowerShell

Steps to reproduce

  1. Open a tab of PowerShell 7.1.2 or Windows PowerShell
  2. Copy any line of the following text
【1】【2】【3】[4][5][6]
【】【】【】
【【【【【【
】】】】】】
||||||
1|2|3|4|5|6|
  1. Paste it

Expected behavior

Pasted text should be the same as copied

Actual behavior

Ended up with the following

【123[4][5][6]
【
【
】
|
1234|5|6|

Works fine in Terminal 1.4.3243.0
Works fine in Command Prompt and Ubuntu
Works fine in standalone Windows PowerShell and PowerShell 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingProduct-PowershellIssues in the modern command interpreter, Powershell.exe.Resolution-ExternalFor issues that are outside this codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions