sirosen / texthooks

pre-commit hooks for checking text file contents
Other
14 stars 3 forks source link

Add regression test and fix for #40 #41

Closed sirosen closed 1 year ago

sirosen commented 1 year ago

The DiffRecorder was setting encoding correctly on read, but not on write. Save the detected encoding and use it in both open() calls.

For consistency, the CheckRecorder also follows this pattern.