]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: diff: fix encoding problems when showing diff
authorEric Wong <e@80x24.org>
Tue, 31 Jan 2023 10:31:57 +0000 (10:31 +0000)
committerEric Wong <e@80x24.org>
Tue, 31 Jan 2023 10:38:56 +0000 (10:38 +0000)
We need to use the utf8 layer when writing files to be diffed,
and utf8::decode the `git diff' output.  Furthermore, do the
CRLF > LF conversion early to avoid showing CRLF vs LF
differences in the diff, since that doesn't matter to MUAs
(nor our normal HTML views)


No differences found