Fix too-late setup of path encoding stuff.
authorCarl Hetherington <cth@carlh.net>
Tue, 9 Jul 2024 08:03:10 +0000 (10:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 9 Jul 2024 08:03:10 +0000 (10:03 +0200)
src/tools/dcpomatic_cli.cc

index 5a7ec3c7200ee4636059c22fa3d976ede2038865..79d9bbe1c753830e1d07340062dc1053422dba81 100644 (file)
@@ -263,6 +263,9 @@ main (int argc, char* argv[])
        ArgFixer fixer(argc, argv);
        auto const program_name = fixer.argv()[0];
 
+       dcpomatic_setup_path_encoding ();
+       dcpomatic_setup ();
+
        boost::filesystem::path film_dir;
        bool progress = true;
        bool no_remote = false;
@@ -412,8 +415,6 @@ main (int argc, char* argv[])
 
        film_dir = fixer.argv()[optind];
 
-       dcpomatic_setup_path_encoding ();
-       dcpomatic_setup ();
        signal_manager = new SignalManager ();
 
        if (no_remote || export_format) {