Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
czphoenix opened this issue Feb 25, 2021 · 2 comments
Closed

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

czphoenix opened this issue Feb 25, 2021 · 2 comments

Comments

@czphoenix
Copy link

Environment

PS version: 7.1.2
PSReadline version: 2.2.0-beta2
os: 10.0.19041.860 (WinBuild.160101.0800)
PS file version: 7.1.2.0
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 120
BufferHeight: 30

Windows Terminal version 1.5.10411.0

Exception report

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|

affects Chinese punctuation marks

!¥…………()————【】;:‘“,。《》?、·

#microsoft/terminal#9263

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Feb 25, 2021
@daxian-dbw
Copy link
Member

@czphoenix Thanks for the report. I believe you did the pasting with right click, and this is a duplicate of #579.
You can try using ctrl+v and it will work as expected:

demo1

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Mar 5, 2021
@czphoenix
Copy link
Author

In my case ctrl+v results the same as right click.
However, this only occur in Terminal
image
image

Standalone PowerShell Core 7.1.2 and PowerShell works fine
image
image

Cmder works fine
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants