Commit fa6a043
authored
Fix piping to native commands for Windows PowerShell (#1836)
For an unknown reason, we were explicitly overriding
`Console.InputEncoding`, which led to a bug where input piped to a
native command in Windows PowerShell (where the default encoding is
different than our override) would fail. Instead, we just don't override
the encodings at all, which lets PSES be closer to the expected
experience.
The regression test covers this, though to test the failure I had to
move that override outside its guard (as it wasn't being set during
tests).
Also fix building on ARM64 in Windows PowerShell, which doesn't have
`$IsWindows`.1 parent 6756bf8 commit fa6a043
File tree
3 files changed
+11
-4
lines changed- src/PowerShellEditorServices/Services/PowerShell/Host
- test/PowerShellEditorServices.Test/Session
3 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
981 | 980 | | |
982 | 981 | | |
983 | 982 | | |
984 | | - | |
985 | | - | |
986 | 983 | | |
987 | 984 | | |
988 | 985 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
175 | 185 | | |
176 | 186 | | |
0 commit comments