slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit e1b89581d2273d1e32cfa25616121e884f755b33
parent 3971c1f47c6b6b7b87a50efa24674c7820d24ac1
Author: Aaron Marcher <info@nulltime.net>
Date:   Mon, 10 Oct 2016 18:58:06 +0200

add setlocale() (mostly for datetime function)

Diffstat:
Mslstatus.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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';