diff options
-rw-r--r-- | errno.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <ctype.h> #include <errno.h> +#include <locale.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -122,6 +123,8 @@ main(int argc, char **argv) int index = 0; enum { lookup_mode, list_mode, search_mode } mode = lookup_mode; + setlocale(LC_ALL, ""); + for (;;) { int c = getopt_long(argc, argv, "hls", options, &index); if (c == -1) |