string const & path, bool process_events)
{
string outfile;
- QString cmd = toqstr(parsecmd(what, outfile));
+ QString cmd = QString::fromLocal8Bit(parsecmd(what, outfile).c_str());
SystemcallPrivate d(outfile);
if (!out_file_.empty()) {
// Check whether we have to simply throw away the output.
if (out_file_ != os::nulldev())
- process_->setStandardOutputFile(toqstr(out_file_));
+ process_->setStandardOutputFile(QString::fromLocal8Bit(out_file_.c_str()));
}
connect(process_, SIGNAL(readyReadStandardOutput()), SLOT(stdOut()));
/** Start child process.
* The string "what" contains a commandline with arguments separated
- * by spaces. The string "path" contains the path to be prepended to
- * the TEXINPUTS environment variable. Unset "process_events" in
- * case UI should be blocked while processing the external command.
+ * by spaces and encoded in the filesystem encoding. The string "path"
+ * contains the path to be prepended to the TEXINPUTS environment
+ * variable and encoded in utf-8. Unset "process_events" in case
+ * UI should be blocked while processing the external command.
*/
int startscript(Starttype how, std::string const & what,
std::string const & path = empty_string(),