From: Peter Kümmel Date: Fri, 18 Dec 2009 19:35:32 +0000 (+0000) Subject: UNDO: single quotes in filenames are possible X-Git-Tag: 2.0.0~4769 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=21686c0bbf725f22c7467a673b73925bedc4963d;p=features.git UNDO: single quotes in filenames are possible git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32582 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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);