Ensure that 'fixup_bundle_environment()' returns a suitable localedir (msvc)
[ardour.git] / gtk2_ardour / bundle_env_msvc.cc
index 8dced22050ae021d6e1f493eda8fbdb69ba88fa3..bde3ed050ac62b47bfc20c238a26dfc3a9428a65 100644 (file)
@@ -437,6 +437,9 @@ fixup_bundle_environment (int argc, char* argv[], const char** localedir)
                path = windows_search_path().to_string();
                path += "\\locale";
                Glib::setenv ("GTK_LOCALEDIR", path, true);
+
+               // and return the same path to our caller
+               (*localedir) = strdup (path.c_str());
        }