-
Notifications
You must be signed in to change notification settings - Fork 859
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
wsl.exe --help option garbles output when piped to more #4456
Comments
Brute workaround (working on my system win 10 1903 danish ): c:\>wsl --help | wsl tr -d '\000\015' | more but of course that seems quite fragile though. The format that 'wsl --help' spits out seems to be some bastard kind of utf16LE but where every '\r\n' becomes '\r\r\n'. |
Interesting report. Yep there is an extra Alternative work-around below. I set my Windows system locale to Chinese with the new fangled Windows Terminal v0.4.2382.0 preview.
Seems to take believe it or not: No word on whether that text makes any sense (I believe it may not) but it does match the non- |
@therealkenc - Excellent, using the right tool for the job. Much better and robust workaround, also works in the standard (old) console (The one used when calling cmd.exe, what's its name? ). |
Windows Console (vs newspeak Windows Terminal). Yes those words are synonyms but they had to call it something. I found with wide characters like Chinese the (scare quote) "old" Windows Console mangled some glyphs. I just tried Windows Terminal on a lark. Western-ish charsets will possibly be fine in both. Can't speak to Danish, lolz. |
Really the same root cause as #4607, for which a workaround is available starting with release 0.64.0. I've confirmed that setting For those who aren't able to upgrade to Windows 11 at this time, the workaround in this comment by falloutphil should also work. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18362.295]
Start cmd.exe prompt
Result - every char is postfixed with newline it seams:
Readable (
more
) paged output expected.PS!
This is not a console issue. It's the
wsl.exe --help
option only, outputting extra (newline?) chars.e.g.
c:\> wsl ls --help | more
works fine.PS!!
Tested with both
c:\> chcp 850
(default on my system) andc:\> chcp 65001
, unicode output. Same result.The text was updated successfully, but these errors were encountered: