aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-02-07 00:44:34 +0100
committerache <ache@ache.one>2019-02-07 00:44:34 +0100
commit5e107ff89f66728fdbb62b172814a0bf8ff55540 (patch)
tree6fd001418b295d89ef1e2b4d789fabd4a16d7ca1
parentFix order of config param (diff)
Fix UTF-8 problem
-rw-r--r--main.c4
1 files 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);