diff options
author | Yorhel <git@yorhel.nl> | 2009-10-18 12:05:36 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-18 12:05:36 +0200 |
commit | adaf8a609831734c41e89f386bdec83598a0912b (patch) | |
tree | 88e6b4318ad4f10316712c5e343dadbac748913a /src/main.c | |
parent | 783993dbf5c7f86085c59b08a0faccc1bdf5f9d2 (diff) |
Call setlocale() at initialization
This (in combination with linking to ncursesw) fixes the display of
non-ASCII characters.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <unistd.h> #include <sys/time.h> +#include <locale.h> int pstate; @@ -146,6 +147,8 @@ char *argv_parse(int argc, char **argv) { int main(int argc, char **argv) { char *dir; + setlocale(LC_ALL, ""); + if((dir = argv_parse(argc, argv)) == NULL) dir = "."; |