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 | e1b89581d2273d1e32cfa25616121e884f755b33 (patch) | |
tree | c190e3b745f3f5a750b779429d68a42e7129a947 | |
parent | 3971c1f47c6b6b7b87a50efa24674c7820d24ac1 (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'; |