Skip to content

ihalent 0.3.1 — fix piped-output crash on Windows

Latest

Choose a tag to compare

@gulmezeren2-byte gulmezeren2-byte released this 29 Jul 11:39
· 4 commits to main since this release

Fixes a crash when output is piped on Windows. Worth upgrading if you're on Windows or run this in CI.

A piped stdout on Windows gets the legacy code page rather than UTF-8. This tool prints a firm name like ÖZKAN İNŞAAT LTD. ŞTİ. or a label like kırım — and those characters raised UnicodeEncodeError, taking the whole command down. Piping into a file or a parser, and any CI step capturing the log, failed on entirely ordinary data.

Output streams are now asked for UTF-8, and the guard never fails if a stream won't take it. Regression tests cover both the legacy-code-page path and a stream with no reconfigure().

Found by reproducing the defect class that had just been fixed in claude-skills-doctor, then confirming it here against real Turkish content — the bug was worse in these tools, because the characters that break are the data itself rather than decoration.

🤖 Generated with Claude Code