Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Replace the stray bytes of text that is not UTF-8
A commit whose encoding header names something iconv cannot convert, or whose text is labelled UTF-8 without being it, reached a page declared UTF-8 with its bytes untouched. The atom feed already replaced them, so its UTF-8 reader moves to shared.c and every ident, subject, message and tag text passes through it.
-rw-r--r--source/parsing.c27
-rw-r--r--source/shared.c49
-rw-r--r--source/shared.h12
-rw-r--r--source/ui-atom.c35
-rwxr-xr-xtests/t0106-commit.sh19
5 files changed, 99 insertions, 43 deletions