diff options
author | Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> | 2017-09-11 20:05:21 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-09-16 14:10:35 +0200 |
commit | 6d56cbef4d65fc90b98d164ee174a2b3debe0635 (patch) | |
tree | fc5a45731c2deca8981ca4d3cb854a1c757d7585 | |
parent | 7223217bda89a9685daea71d0f54c1f5e86b77c7 (diff) |
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>
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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> @@ -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); |