]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #9453
authorEnrico Forestieri <forenr@lyx.org>
Sun, 15 Mar 2015 23:34:35 +0000 (00:34 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 15 Mar 2015 23:34:35 +0000 (00:34 +0100)
This was due to a problem with the QProcess parser.
See #9453 for details.

src/support/filetools.cpp

index 5704aa1e1106a4bc91165db18d6e5e2d46ed38f1..229dd2e1da2b52e487cbc0806a936e3888d9dd28 100644 (file)
@@ -733,15 +733,10 @@ string latexEnvCmdPrefix(string const & path)
                return "env TEXINPUTS=\"." + sep + texinputs_prefix
                                          + sep + texinputs + "\" ";
        else
-#ifndef USE_QPROCESS
+               // NOTE: *any* space in the last string matters! (see bug 9453)
                return "cmd /d /c set \"TEXINPUTS=."
                                                + sep + texinputs_prefix
-                                               + sep + texinputs + "\"&";
-#else
-               return "cmd /d /c set \"\"\"TEXINPUTS=."
-                                               + sep + texinputs_prefix
-                                               + sep + texinputs + "\"\"\"&";
-#endif
+                                               + sep + texinputs + " \" & ";
 }