From ff9beb850c52619bc39767f2721aef82856e43c3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 31 May 2014 06:47:22 -0700 Subject: [PATCH] Build wx without iostream support --- build/wx/setup-build.h | 2 +- src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/wx/setup-build.h b/build/wx/setup-build.h index dd14efced..b4d7c0b5e 100644 --- a/build/wx/setup-build.h +++ b/build/wx/setup-build.h @@ -29,7 +29,7 @@ #define wxUSE_CMDLINE_PARSER 0 #define wxUSE_THREADS 1 #define wxUSE_STREAMS 1 -#define wxUSE_STD_IOSTREAM 1 +#define wxUSE_STD_IOSTREAM 0 #define wxUSE_STD_STRING 1 #define wxUSE_PRINTF_POS_PARAMS 1 #define wxUSE_LONGLONG 1 diff --git a/src/utils.cpp b/src/utils.cpp index 1eefa80da..989ca9971 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -105,7 +105,7 @@ void RestartAegisub() { if (bundle_path.empty() || helper_path.empty()) return; wxString exec = fmt_wx("\"%s\" /usr/bin/open -n \"%s\"'", helper_path, bundle_path); - LOG_I("util/restart/exec") << exec; + LOG_I("util/restart/exec") << exec.utf8_str(); wxExecute(exec); #else wxExecute(wxStandardPaths::Get().GetExecutablePath());