terminal: Cannot paste "─" character in WSL

Environment

Windows build number: [Version 10.0.18363.1016]
Windows Terminal version (if applicable): 1.1.2021.0

Any other software?

Steps to reproduce

Copy the “─” character and attempt to paste it into WSL in Windows Terminal or conhost.

Expected behavior

The character is pasted fine.

Actual behavior

It is not pasted fine.


This is an odd bug that’s really hard to google, so it might not actually be a microsoft/terminal bug? However, I can successfully paste “─” into WSL via the IntelliJ terminal which I believe isn’t using terminal/conhost.

I can paste this character fine into cmd, powershell, and pswh (both in Terminal, and in the windows opened by running those commands via Run, which I assume is/means conhost?).

I originally noticed this when copying from the output of audit-app:

┌────────────┬────────────────────────────────────────────────────────────────────┐
│ low        │ Prototype Pollution (#577)                                         │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Package    │ lodash v3.10.1                                                     │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.5                                                           │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ More info  │ https://npmjs.com/advisories/577                                   │
└────────────┴────────────────────────────────────────────────────────────────────┘

Pasting the above into WSL via Terminal or conhost results in:

┌┬┐
│ low        │ Prototype Pollution (#577)                                         │
├┼┤
│ Package    │ lodash v3.10.1                                                     │
├┼┤
│ Patched in │ >=4.17.5                                                           │
├┼┤
│ More info  │ https://npmjs.com/advisories/577                                   │
└┴┘

This behaviour happens regardless of what program I copy the text from.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

What version of powershell are you using in your screenshot?

@G-Rath 5.1.19041.1

PowerShell 5: works (all chars are pasted)

Ohhh I see the difference