Skip to content

v0.4.1 — Windows console UTF-8 out-of-box fix

Choose a tag to compare

@CreatmanCEO CreatmanCEO released this 13 May 08:06
· 7 commits to main since this release
6938546

Fixed

  • Windows out-of-box crash. Many subcommands (session list, perms audit, hooks list, etc.) crashed with UnicodeEncodeError: 'charmap' codec can't encode characters when 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.py reproduces the failure on Windows by spawning a subprocess with PYTHONIOENCODING unset; skipped on Linux CI.

Install / upgrade

pipx install --force cc-janitor==0.4.1
# or
uv tool install --force cc-janitor==0.4.1