diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 810694ec78..ae9437f529 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -142,7 +142,9 @@ string const quoteName(string const & name, quote_style style) '\'' + name + '\'': '"' + name + '"'; #else - return '"' + name + '"'; + // According to the QProcess parser, a single double + // quote is represented by three consecutive ones. + return '"' + subst(name, "\"", "\"\"\"") + '"'; #endif case quote_python: return "\"" + subst(subst(name, "\\", "\\\\"), "\"", "\\\"")