aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-06 08:11:30 +0000
committerOmar Polo <op@omarpolo.com>2023-06-06 08:11:30 +0000
commit0046c1fe9ca72ed024c8562d51e2b320f7968915 (patch)
treec8b830705b7060e34484e59738668e449ad60001 /ge.c
parentbb595bff79eda45b10cf0538b93e2ec72c3db495 (diff)
call setlocale()
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ge.c b/ge.c
index d96c37a..10d0c00 100644
--- a/ge.c
+++ b/ge.c
@@ -22,6 +22,7 @@
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
+#include <locale.h>
#include <libgen.h>
#include <signal.h>
#include <string.h>
@@ -205,6 +206,8 @@ main(int argc, char **argv)
char path[PATH_MAX];
int ch;
+ setlocale(LC_CTYPE, "");
+
logger_init();
conf.port = 1965;
conf.protos = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3;