From be1631a5d7e262588dda1bbe3d71c655096c69cc Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 27 Aug 2026 05:26:48 -1000 Subject: Spell the charset UTF-8 everywhere --- source/ui-atom.c | 4 ++-- source/ui-plain.c | 2 +- source/ui-shared.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ui-atom.c b/source/ui-atom.c index 6eaa055..5ea681e 100644 --- a/source/ui-atom.c +++ b/source/ui-atom.c @@ -225,9 +225,9 @@ void cgit_print_atom(char *tip, const char *path, int max_count) if (!host) host = xstrdup("localhost"); ctx.page.mimetype = "application/atom+xml"; - ctx.page.charset = "utf-8"; + ctx.page.charset = PAGE_ENCODING; cgit_print_http_headers(); - html("\n"); + html("\n"); html("\n"); html(""); xml_txt(ctx.repo->name); diff --git a/source/ui-plain.c b/source/ui-plain.c index bbd6991..7e30694 100644 --- a/source/ui-plain.c +++ b/source/ui-plain.c @@ -124,7 +124,7 @@ static void print_dir(const struct object_id *oid, const char *base, // doctype and charset as the layout pages or the browser would parse // it in quirks mode. html("<!DOCTYPE html>\n<html lang='en'>\n<head>\n"); - html("<meta charset='utf-8'>\n"); + html("<meta charset='UTF-8'>\n"); htmlf("<title>%s", leading_slash); html_txt(fullpath); htmlf("\n\n\n

%s", leading_slash); diff --git a/source/ui-shared.c b/source/ui-shared.c index ae5b976..60dc3f8 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1440,7 +1440,7 @@ void cgit_print_docstart(void) html("\n"); html("\n"); html("\n"); - html("\n"); + html("\n"); html("\n"); html("\n"); html("\n"); -- cgit v2.8.0