diff options
author | Aaron Marcher <info@nulltime.net> | 2016-10-10 18:58:06 +0200 |
---|---|---|
committer | Aaron Marcher <info@nulltime.net> | 2016-10-10 18:58:06 +0200 |
commit | 906242d9c039c0524d48e21bc36314629d50703a (patch) | |
tree | c190e3b745f3f5a750b779429d68a42e7129a947 | |
parent | 269029073c50aeb7448f52b116d1746ebf4acee7 (diff) |
add setlocale() (mostly for datetime function)
-rw-r--r-- | slstatus.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'; |