Call dcpomatic_setup_path_encoding() early enough (#2665).
[dcpomatic.git] / src / tools / dcpomatic.cc
index 11181ae588067f89539af0d72df2d255759dc6fd..5bd8b8def425a677e50c45bce2d5a333e8dcc8ef 100644 (file)
@@ -1592,6 +1592,7 @@ public:
        App ()
                : wxApp ()
        {
+               dcpomatic_setup_path_encoding ();
 #ifdef DCPOMATIC_LINUX
                XInitThreads ();
 #endif
@@ -1644,8 +1645,6 @@ private:
                        make_foreground_application ();
 #endif
 
-                       dcpomatic_setup_path_encoding ();
-
                        /* Enable i18n; this will create a Config object
                           to look for a force-configured language.  This Config
                           object will be wrong, however, because dcpomatic_setup