all repos — slstatus @ fb1f1dea2e8e4d11f3e213d18c2b03fd76751255

my build of slstatus (tools.suckless.org/slstatus/)

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>
Kurt Van Dijck dev.kurt@vandijck-laurijssen.be
Mon, 11 Sep 2017 20:05:21 +0200
commit

fb1f1dea2e8e4d11f3e213d18c2b03fd76751255

parent

53e0c4535ac7143a871acf1d6a91dc3b0a248d87

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -6,6 +6,7 @@ #include <fcntl.h>

#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 @@ if (argc) {

usage(); } + setlocale(LC_ALL, ""); memset(&act, 0, sizeof(act)); act.sa_handler = terminate; sigaction(SIGINT, &act, NULL);