From 1330b8f581a6eb647de3e1ae2132b3eb64f01353 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 27 Aug 2026 03:52:25 -1000 Subject: Replace non-ASCII output glyphs with ASCII --- source/ui-blob.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/ui-blob.c') diff --git a/source/ui-blob.c b/source/ui-blob.c index 8f68d04..1088679 100644 --- a/source/ui-blob.c +++ b/source/ui-blob.c @@ -128,15 +128,15 @@ int cgit_print_file(char *path, const char *head, int file_only, int html_escape buf[size] = '\0'; if (html_escape) { // html_txt stops at a NUL, so a blob holding one is written - // segment by segment with a replacement character standing in - // for each NUL byte, rather than silently cut short. + // segment by segment with a question mark standing in for + // each NUL byte, rather than silently cut short. const char *p = buf, *end = buf + size; while (p < end) { html_txt(p); p += strlen(p); while (p < end && !*p) { - html("\xef\xbf\xbd"); + html("?"); p++; } } -- cgit v2.8.0