From f035a0f736ff030a4e6da9ffe033938dac5e979a Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Tue, 24 Jul 2018 20:02:27 +0100 Subject: [PATCH] server/dump.c: Try to set the locale on startup. Organization: Straylight/Edgeware From: Mark Wooding Otherwise we get annoying cronspam if the configuration contains funny characters. --- server/dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/dump.c b/server/dump.c index 475fc81..31e08af 100644 --- a/server/dump.c +++ b/server/dump.c @@ -377,6 +377,8 @@ int main(int argc, char **argv) { FILE *fp; mem_init(); + if(!setlocale(LC_CTYPE, "")) + disorder_error(errno, "error calling setlocale"); while((n = getopt_long(argc, argv, "hVc:dDurRaPR", options, 0)) >= 0) { switch(n) { case 'h': help(); -- [mdw]