From 55b6f72223675c226238a5110d674a852e9922d3 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 12 Sep 2019 21:04:41 +0100 Subject: Adopt the locale of the environment for locale-dependent things like date formats. --- blabouncer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'blabouncer.c') diff --git a/blabouncer.c b/blabouncer.c index cfc1f2d..7052117 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -39,6 +39,7 @@ #include #include #include +#include #include "functions.h" #include "sockets.h" @@ -857,6 +858,9 @@ int main(int argc, char *argv[]) { // Structure of our various settings which are to either be read from the configuration file or set at runtime struct settings settings; + // Adopt the locale of the environment for locale-dependent things like date formats later on + setlocale(LC_ALL, ""); + // Terminate our global debug file string in case it's referenced before being read from file debugpath[0] = '\0'; -- cgit v1.2.3