Browse Source

add setlocale() (mostly for datetime function)

master
Aaron Marcher 9 years ago
parent
commit
e1b89581d2
No known key found for this signature in database GPG Key ID: 74B048E5C2474F9A
  1. 3
      slstatus.c

3
slstatus.c

@ -6,6 +6,7 @@
#include <ifaddrs.h> #include <ifaddrs.h>
#include <limits.h> #include <limits.h>
#include <linux/wireless.h> #include <linux/wireless.h>
#include <locale.h>
#include <netdb.h> #include <netdb.h>
#include <pwd.h> #include <pwd.h>
#include <signal.h> #include <signal.h>
@ -634,6 +635,8 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(NULL); dpy = XOpenDisplay(NULL);
} }
setlocale(LC_ALL, "");
while (!done) { while (!done) {
status_string[0] = '\0'; status_string[0] = '\0';

Loading…
Cancel
Save