From 21686c0bbf725f22c7467a673b73925bedc4963d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Fri, 18 Dec 2009 19:35:32 +0000 Subject: [PATCH] UNDO: single quotes in filenames are possible git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32582 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/Systemcall.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index c5ac165bef..4ea084028d 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -82,7 +82,7 @@ string const parsecmd(string const & cmd, string & outfile) for (size_t i = 0; i < cmd.length(); ++i) { char c = cmd[i]; - if ((c == '"' || c == '\'') && !escaped) + if (c == '"' && !escaped) inquote = !inquote; else if (c == '\\' && !escaped) escaped = !escaped; @@ -103,11 +103,7 @@ string const parsecmd(string const & cmd, string & outfile) int Systemcall::startscript(Starttype how, string const & what, bool process_events) { string outfile; - QString cmd = toqstr(parsecmd(what, outfile)); - if (cmd.contains("'")) { - LYXERR0("Systemcall: '" << cmd << "' contains single quotes ', please check configuration, ' will be replaced by \""); - cmd = cmd.replace("'","\""); - } + QString cmd = toqstr(parsecmd(what, outfile)); SystemcallPrivate d(outfile);