From c4a654a1497149e9470078b5ab067305a2016361 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 12 Jan 2017 22:40:33 +0000 Subject: [PATCH] output: fix timestamp localization on html page Signed-off-by: Sami Kerola --- src/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output.c b/src/output.c index c3ad488..7c29d4f 100644 --- a/src/output.c +++ b/src/output.c @@ -468,6 +468,8 @@ static void html_header(FILE *restrict f) if (tmp == NULL) { error(EXIT_FAILURE, errno, "html_header: localtime"); } + setlocale(LC_CTYPE, ""); + setlocale(LC_NUMERIC, ""); if (strftime(outstr, sizeof(outstr), nl_langinfo(D_T_FMT), &result) == 0) { error(EXIT_FAILURE, 0, "html_header: strftime returned 0"); }