Browse Source

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>
master
Kurt Van Dijck 6 years ago
committed by Aaron Marcher
parent
commit
fb1f1dea2e
No known key found for this signature in database GPG Key ID: 74B048E5C2474F9A
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      slstatus.c

+ 2
- 0
slstatus.c View File

@@ -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);


Loading…
Cancel
Save