From bf0cebd121a69f87a81e90e2cc64c08f32da6f7c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 25 Nov 2023 21:07:50 +0100 Subject: [PATCH] Call dcpomatic_setup_path_encoding() early enough (#2665). On Windows this was previously called after we instantiated a Config object to get win32_console(), meaning that the required path voodoo was not active when looking for the config. This caused problems if the user has a non-ASCII user name. --- src/tools/dcpomatic.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 11181ae58..5bd8b8def 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -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 -- 2.30.2