From fb1f1dea2e8e4d11f3e213d18c2b03fd76751255 Mon Sep 17 00:00:00 2001 From: Kurt Van Dijck Date: Mon, 11 Sep 2017 20:05:21 +0200 Subject: [PATCH] slstatus: set locale I want my date & time printed according my locale settings. This commit enables that Signed-off-by: Kurt Van Dijck --- slstatus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slstatus.c b/slstatus.c index cbc35a4..cddc79a 100644 --- a/slstatus.c +++ b/slstatus.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -841,6 +842,7 @@ main(int argc, char *argv[]) usage(); } + setlocale(LC_ALL, ""); memset(&act, 0, sizeof(act)); act.sa_handler = terminate; sigaction(SIGINT, &act, NULL);