diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index adf353eb30..c9cdcbb99e 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -141,7 +141,7 @@ static int createFileFromTemplate(char *const path, return -1; } #else - if (!QFileInfo(QLatin1String(path)).exists()) + if (!QFileInfo(QString::fromLocal8Bit(path)).exists()) return 1; #endif