diff options
author | jozan <jozan@noemail.net> | 2020-11-12 18:28:47 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-12 18:28:47 +0000 |
commit | ed993cd7c1d87215a93df5e262e4fba3ce57c442 (patch) | |
tree | bc142f62248c8f22ebe8b4f626c786bab2e45794 /src/c_unixize.c | |
parent | In progress (diff) | |
download | unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.gz unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.bz2 unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.xz unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.zst unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.zip |
In progress
FossilOrigin-Name: 67a34a272b1dbb5370844efe2378b87c51c0e56c856cf7554993367bab6bfa47
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); |