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:
53e0c45
)
slstatus: set locale
author
Kurt Van Dijck
<dev.kurt@vandijck-laurijssen.be>
Mon, 11 Sep 2017 18:05:21 +0000
(20:05 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sat, 16 Sep 2017 12:10:35 +0000
(14:10 +0200)
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>
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index cbc35a4369b9074e70d0c6d0b996fe6f5b608b5f..cddc79a85f2fd8efeac5aa83980d0f0a3f7354e3 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>
@@
-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);