add setlocale() (mostly for datetime function)
Aaron Marcher info@nulltime.net
Mon, 10 Oct 2016 18:58:06 +0200
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -6,6 +6,7 @@ #include <fcntl.h>
#include <ifaddrs.h> #include <limits.h> #include <linux/wireless.h> +#include <locale.h> #include <netdb.h> #include <pwd.h> #include <signal.h>@@ -633,6 +634,8 @@
if (!oflag) { dpy = XOpenDisplay(NULL); } + + setlocale(LC_ALL, ""); while (!done) { status_string[0] = '\0';