]> Sergey Matveev's repositories - public-inbox.git/commit
www: viewdiff: fix UTF-8 names inside mbox attachments
authorEric Wong <e@80x24.org>
Mon, 12 Sep 2022 22:54:04 +0000 (22:54 +0000)
committerEric Wong <e@80x24.org>
Mon, 12 Sep 2022 22:56:03 +0000 (22:56 +0000)
commitc1e7a048be9d32cdca943bb3b7f935ed28768d4d
tree7b7197e86c07aa9e4e5f6827df770913ccadf159
parent598dcdbead54e1d4746dea762c2c3cf292e796fc
www: viewdiff: fix UTF-8 names inside mbox attachments

This avoids `Wide character in print' warnings and ensures the
UTF-8 characters in `Signed-off-by' trailers are properly rendered
in HTML even when attempting to decode and display
application/octet-stream mbox attachments as HTML.

Linkification and reconstruction for coderepos is probably
still broken, but that is a much bigger task to fix, I think.

Fixes: ab9c03ff4aa369b3 ("www: use PerlIO::scalar (zfh) for buffering")
MANIFEST
lib/PublicInbox/ViewDiff.pm
t/data/attached-mbox-with-utf8.eml [new file with mode: 0644]
t/plack.t