diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 9dae77ea47f..6ba72d2fbe0 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -2094,6 +2094,7 @@ void tst_Moc::notifyError() QByteArray mocOut = proc.readAllStandardOutput(); QVERIFY(!mocOut.isEmpty()); + proc.setEnvironment({"LC_ALL=C.UTF-8"}); QStringList args; args << "-c" << "-x" << "c++" << "-I" << "." << "-I" << qtIncludePath << "-o" << "/dev/null" << "-fPIC" << "-std=c++1z" << "-";