v0.4.1 — Windows console UTF-8 out-of-box fix
Fixed
- Windows out-of-box crash. Many subcommands (
session list,perms audit,hooks list, etc.) crashed withUnicodeEncodeError: 'charmap' codec can't encode characterswhen invoked on the default Windows console (cp1251 / cp866) against real Claude Code data containing Cyrillic / CJK / emoji paths.
Fixed by forcing sys.stdout.reconfigure(encoding="utf-8", errors="replace") at entry point on sys.platform == "win32". Users no longer need to set PYTHONIOENCODING=utf-8.
- New end-to-end test in
tests/unit/test_main_utf8.pyreproduces the failure on Windows by spawning a subprocess withPYTHONIOENCODINGunset; skipped on Linux CI.
Install / upgrade
pipx install --force cc-janitor==0.4.1
# or
uv tool install --force cc-janitor==0.4.1