Skip to content

fix: avoid UTF-8 decode errors in detect_changes#170

Open
zerone0x wants to merge 1 commit intotirth8205:mainfrom
zerone0x:fix/detect-changes-binary-169
Open

fix: avoid UTF-8 decode errors in detect_changes#170
zerone0x wants to merge 1 commit intotirth8205:mainfrom
zerone0x:fix/detect-changes-binary-169

Conversation

@zerone0x
Copy link
Copy Markdown

@zerone0x zerone0x commented Apr 9, 2026

Summary

  • prevent git diff parsing from crashing on non-UTF-8 bytes
  • decode diff output with replacement to keep range parsing stable

Changes

  • set encoding/errors on diff subprocess to avoid UnicodeDecodeError

Fixes #169

Fixes tirth8205#169

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

detect_changes fails with UTF-8 decode error on diffs containing binary files

1 participant