summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slstatus.c b/slstatus.c
index cbc35a4..cddc79a 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -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);