about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-02 20:27:37 +0000
committerJames Booth <boothj5@gmail.com>2013-01-02 20:27:37 +0000
commitd28930eaf475bdf187585d900e079b6ce9f32deb (patch)
tree5fe5f6efc853b130a3dcfb14d48d1949872ca3aa /src/profanity.c
parent3b37e53a5c02fc0aad5fc9e479adea173b40acd6 (diff)
downloadprofani-tty-d28930eaf475bdf187585d900e079b6ce9f32deb.tar.gz
Include ncursesw, set locale
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 428bfddd..47440b35 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -22,6 +22,7 @@
 
 #include "config.h"
 
+#include <locale.h>
 #include <stdlib.h>
 #include <string.h>
 #include <signal.h>
@@ -519,6 +520,7 @@ _handle_idle_time()
 static void
 _init(const int disable_tls, char *log_level)
 {
+    setlocale(LC_ALL, "");
     // ignore SIGPIPE
     signal(SIGPIPE, SIG_IGN);
     files_create_directories();