From e1b89581d2273d1e32cfa25616121e884f755b33 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Mon, 10 Oct 2016 18:58:06 +0200 Subject: add setlocale() (mostly for datetime function) --- slstatus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index 0a0f743..d442776 100644 --- a/slstatus.c +++ b/slstatus.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -634,6 +635,8 @@ main(int argc, char *argv[]) dpy = XOpenDisplay(NULL); } + setlocale(LC_ALL, ""); + while (!done) { status_string[0] = '\0'; -- cgit v1.2.3