slstatus: set locale

I want my date & time printed according my locale settings.
This commit enables that

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
This commit is contained in:
Kurt Van Dijck 2017-09-11 20:05:21 +02:00 committed by Aaron Marcher
parent 53e0c4535a
commit fb1f1dea2e
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <ifaddrs.h> #include <ifaddrs.h>
#include <limits.h> #include <limits.h>
#include <linux/wireless.h> #include <linux/wireless.h>
#include <locale.h>
#include <netdb.h> #include <netdb.h>
#include <pwd.h> #include <pwd.h>
#include <signal.h> #include <signal.h>
@ -841,6 +842,7 @@ main(int argc, char *argv[])
usage(); usage();
} }
setlocale(LC_ALL, "");
memset(&act, 0, sizeof(act)); memset(&act, 0, sizeof(act));
act.sa_handler = terminate; act.sa_handler = terminate;
sigaction(SIGINT, &act, NULL); sigaction(SIGINT, &act, NULL);