summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO4
-rw-r--r--blabouncer.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/TODO b/TODO
index 0335689..8558408 100644
--- a/TODO
+++ b/TODO
@@ -11,3 +11,7 @@ Ensure replayed lines don't exceed IRC message maximum length due to inserted ti
Log server messages to file.
Is there a way to log nick changes to the normal log despite not tracking nicks in each channel? (We do track channel names themselves.)
+
+Change Makefile to not leave separate .o files lying around.
+
+Doesn't compile on old GCC - maybe set -std=gnu99.
diff --git a/blabouncer.c b/blabouncer.c
index cfc1f2d..7052117 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -39,6 +39,7 @@
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/bio.h>
+#include <locale.h>
#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';