Skip to content

v1.2.4 — Fix: garbled/uncopyable text from native Windows tools

Choose a tag to compare

@fermat-tech fermat-tech released this 10 Sep 04:16
· 3 commits to main since this release

What's fixed

  • Garbled, letter-spaced text and failed clipboard copy when paging output from native Windows console tools (e.g. wsl --help | winless). Root cause: some Windows tools write raw UTF-16LE to a redirected/piped stdout with no byte-order mark, which winless previously read byte-for-byte as UTF-8 — every character showed with a stray gap, and copying such a line crashed with Copy failed: invalid argument because the embedded NUL bytes are rejected by the clipboard API. winless now sniffs for a UTF-16 BOM and, failing that, a heuristic that detects BOM-less UTF-16 text, and transcodes it to UTF-8 before display.
  • --version now reports the real release tag. Converted from a const to a var so the build stamps the actual version (-X main.version=) instead of silently keeping whatever was hardcoded at commit time.

Binaries

File Target
winless_windows_amd64.exe Windows x64 (most PCs)
winless_windows_arm64.exe Windows on ARM (Surface Pro X, Copilot+ PCs)