-
Notifications
You must be signed in to change notification settings - Fork 287
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
Smart quotes get removed when pasting to PS7 #1603
Comments
This was reported a couple years back already, I think. #760 is the same issue; seems like it affects quotes and dashes as well. |
This doesn't reproduce in conhost or Windows Terminal if the output encoding is UTF8: [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 |
When PSReadLine is imported, the issue only reproduce for me when pasting using
|
Further investigation shows this is likely caused by the call to |
It has been such a long time . I'm still waiting for this issue to be fixed #1771 (comment) |
Environment
Steps to reproduce
Copy the script from: https://devblogs.microsoft.com/powershell/mandelbrot-one-liner/
Paste into Windows PowerShell
Paste into PowerShell 7 (doesn't matter if conhost or Windows Terminal)
Does't matter if CTRL-V or right click to paste
Expected behavior
Script runs like in Windows PowerShell
Actual behavior
The "smart quotes" around the string of printable characters get removed. Removing PSReadLine enables paste to work correctly. Paste with PSReadLine works fine on macOS.
The text was updated successfully, but these errors were encountered: