From 5e107ff89f66728fdbb62b172814a0bf8ff55540 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 7 Feb 2019 00:44:34 +0100 Subject: Fix UTF-8 problem --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 41efec3..830c209 100644 --- a/main.c +++ b/main.c @@ -61,6 +61,8 @@ int main(int argc, char* argv[]){ #ifdef DEBUG freopen("/tmp/mesms.debug", "w", stderr); #endif + setlocale(LC_ALL, ""); + readConfigFile(); /* Gestion des paramètres */ @@ -159,8 +161,6 @@ int main(int argc, char* argv[]){ int c; int comp = 0; - setlocale(LC_ALL, ""); - initscr(); if (has_colors()) { CHECK(start_color); -- cgit v1.2.3