diff options
Diffstat (limited to 'src/c_unixize.c')
-rw-r--r-- | src/c_unixize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c_unixize.c b/src/c_unixize.c index 324d358..eac2eb3 100644 --- a/src/c_unixize.c +++ b/src/c_unixize.c @@ -49,6 +49,7 @@ #include <dirent.h> #include <errno.h> +#include <locale.h> #include <stdio.h> #include <stddef.h> #include <string.h> @@ -74,6 +75,7 @@ main char** nargv; static char subpath[MAXPATHLEN] = ""; + setlocale(LC_ALL, ""); if (c_get_opts(&opts, argc, argv) == FALSE) { return (0); } @@ -94,7 +96,7 @@ main if (og_files == NULL) { return (0); } - new_files = c_subst_filenames(og_files, opts.hyphen, opts.cxx); + new_files = c_subst_filenames(og_files, opts.hyphen, opts.preserve, opts.cxx); if (new_files == NULL) { c_lfiles_clear(&og_files); return (1); |