summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2016-10-10 18:58:06 +0200
committerAaron Marcher <info@nulltime.net>2016-10-10 18:58:06 +0200
commite1b89581d2273d1e32cfa25616121e884f755b33 (patch)
treec190e3b745f3f5a750b779429d68a42e7129a947
parent3971c1f47c6b6b7b87a50efa24674c7820d24ac1 (diff)
add setlocale() (mostly for datetime function)
-rw-r--r--slstatus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/slstatus.c b/slstatus.c
index 0a0f743..d442776 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -6,6 +6,7 @@
#include <ifaddrs.h>
#include <limits.h>
#include <linux/wireless.h>
+#include <locale.h>
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
@@ -634,6 +635,8 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(NULL);
}
+ setlocale(LC_ALL, "");
+
while (!done) {
status_string[0] = '\0';