Closed comiluv closed 1 year ago
Also posted on github.com/PowerShell/PowerShell/issues/19115 some time ago
Thanks for reporting this @comiluv.
This issue is on the powershell side, but you can work around it with WSL_UTF8
(see https://github.com/microsoft/WSL/issues/4607#issuecomment-1203237214)
Closing since this is not a WSL issue
The powershell guys closed https://github.com/PowerShell/PowerShell/issues/19115 citing the reason it is a wsl issue in comment https://github.com/PowerShell/PowerShell/issues/19115#issuecomment-1421912448
wsl --help
exhibits nonstandard behavior in that it outputs UTF-16LE-encoded strings instead of respecting the console's code page.
Version
Microsoft Windows [Version 10.0.22621.1194]
WSL Version
Kernel Version
Linux version 4.4.0-22621-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1105-Microsoft Fri Jan 01 08:00:00 PST 2016
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Expected Behavior
Unicode characters are preserved
Actual Behavior
Unicode characters are broken
Diagnostic Logs
No response