add setlocale() (mostly for datetime function)
authorAaron Marcher <info@nulltime.net>
Mon, 10 Oct 2016 16:58:06 +0000 (18:58 +0200)
committerAaron Marcher <info@nulltime.net>
Mon, 10 Oct 2016 16:58:06 +0000 (18:58 +0200)
slstatus.c

index 0a0f7430e58d6fe7938132132dfbd09321cb8528..d4427764b8a2bcb0bd28e26082c44df17ada48d0 100644 (file)
@@ -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';