summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slstatus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/slstatus.c b/slstatus.c
index 0a0f743..d442776 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>
@@ -634,6 +635,8 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(NULL);
}
+ setlocale(LC_ALL, "");
+
while (!done) {
status_string[0] = '\0';