diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,7 @@ #include "util.h" #include <errno.h> #include <fcntl.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -46,6 +47,9 @@ int main(int argc, char *argv[]) { goto done; } + // Use the system locale instead of "C" + setlocale(LC_ALL, ""); + struct cmdline *cmdline = parse_cmdline(argc, argv); if (cmdline) { ret = eval_cmdline(cmdline); |