diff --git a/src/dtar/dtar.c b/src/dtar/dtar.c index 76809c1c..5f89997d 100644 --- a/src/dtar/dtar.c +++ b/src/dtar/dtar.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "mfu.h" @@ -161,6 +162,10 @@ static void print_usage(void) int main(int argc, char** argv) { + /* Set the locale for character handling to the user's environment settings + * to ensure that file names are handled correctly by libarchive */ + setlocale(LC_CTYPE, ""); + MPI_Init(&argc, &argv); mfu_init();