projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3971c1f
)
add setlocale() (mostly for datetime function)
author
Aaron Marcher
<info@nulltime.net>
Mon, 10 Oct 2016 16:58:06 +0000
(18:58 +0200)
committer
Aaron Marcher
<info@nulltime.net>
Mon, 10 Oct 2016 16:58:06 +0000
(18:58 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 0a0f7430e58d6fe7938132132dfbd09321cb8528..d4427764b8a2bcb0bd28e26082c44df17ada48d0 100644
(file)
--- 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';