From 25682ae77de70e028b720467ee709266004a0786 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 06:18:51 -1000 Subject: Read the encoding header without its newline The newline made the charset name unknown to the converter, so a message in another charset was left unconverted. --- source/parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/parsing.c b/source/parsing.c index 587f44d..5fde25d 100644 --- a/source/parsing.c +++ b/source/parsing.c @@ -194,7 +194,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) if (p && skip_prefix(p, "encoding ", &p)) { eol = strchr(p, '\n'); if (eol) { - info->msg_encoding = substr(p, eol + 1); + info->msg_encoding = substr(p, eol); p = eol + 1; } } -- cgit v2.8.0