diff --git a/Tests/wmain.cpp b/Tests/wmain.cpp index 2c9a2f2872..2a6ddd4a93 100755 --- a/Tests/wmain.cpp +++ b/Tests/wmain.cpp @@ -20,7 +20,11 @@ GTEST_API_ int main(int argc, char **argv) { int argc = 0; QStringList args; +#if defined(_WIN32) && defined(UNICODE) + args << QString::fromWCharArray(argv[0]); +#else args << QString::fromUtf8(argv[0]); +#endif args << QString::fromUtf8("--clear-cache"); args << QString::fromUtf8("--clear-openfx-cache"); args << QString::fromUtf8("--no-settings");