Repository navigation
v1.0.3
A Windows fix. Non-ASCII characters in Claude's replies rendered as mojibake,
so an em dash appeared as â€".
Python applies the locale encoding to text I/O, and on Windows a pipe decodes
with the system ANSI codepage rather than UTF-8. Claude Code delivers hook
events over a pipe, so the bytes were misread before any bolding happened. The
hook now reads its event as bytes and lets JSON decode it, which is correct by
definition: JSON is UTF-8 on the wire.
Investigating that turned up two more places with the same defect, neither of
which had been reported.
Fixed
- Non-ASCII characters no longer garble on Windows. Reported by @aermak, who
also identified the cause. /claude-bionify:statusand the other control commands no longer emit an
undecodable separator on Windows. The status line is written as UTF-8 bytes
instead of being encoded with the platform codepage, which produced a broken
glyph on Western systems and failed outright on Japanese ones.assets/generate_themes.pyreads and writes UTF-8 explicitly, so
regeneratingthemes.svgproduces the same file on any platform.
Internal
- CI now runs the suite on Windows, and the tests spawn the scripts as real
subprocesses over a pipe rather than substituting their own streams, which is
the only way this class of bug is visible. - The build fails on any text I/O that falls back to the locale encoding
(PEP 597), so this cannot regress silently. - ruff is pinned with an explicit rule selection, and the gate has been widened.
Upgrade Notes
No configuration changes are required. This is a patch release with no breaking
changes. If you cannot upgrade yet, setting PYTHONUTF8=1 in Claude Code's
settings.json works around the issue on 1.0.2.