Skip to content

Tags: kernc/diff-logs

Tags

v0.26.0

Toggle v0.26.0's commit message

Verified

This commit was signed with the committer’s verified signature.
Minor readme update

v0.25.1

Toggle v0.25.1's commit message

Verified

This commit was signed with the committer’s verified signature.
BUG: Fix runtime on invalid UTF-8 encoding

Fixes errors like:

	utf8 "\xC4" does not map to Unicode at ./diff-logs line 52, <$fh1_in> line ...
	Malformed UTF-8 character: \xc4\x2e (unexpected non-continuation byte 0x2e, immediately after start byte 0xc4; need 2 bytes, got 1) in substitution (s///) at ./diff-logs line 59, <$fh1_in> line ...
	Malformed UTF-8 character (fatal) at ./diff-logs line 59, <$fh1_in> line ...

The patch simply assumes UTF-8 and ignores any invalid characters,
replacing them with \xHH escapes.