diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Spell the charset UTF-8 everywhere
Diffstat (limited to '')
-rw-r--r--source/ui-atom.c4
-rw-r--r--source/ui-plain.c2
-rw-r--r--source/ui-shared.c2
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("<?xml version='1.0' encoding='utf-8'?>\n");
+ html("<?xml version='1.0' encoding='UTF-8'?>\n");
html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
html("<title>");
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("</title>\n</head>\n<body>\n<h2>%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("<!DOCTYPE html>\n");
html("<html lang='en' class='cgit-standalone'>\n");
html("<head>\n");
- html("<meta charset='utf-8'>\n");
+ html("<meta charset='UTF-8'>\n");
html("<meta name='viewport' content='width=device-width, initial-scale=1'>\n");
html("<meta name='color-scheme' content='light dark'>\n");
html("<meta name='theme-color' media='(prefers-color-scheme: light)' content='#ffffff'>\n");