commit 0a5e1f20fc807535dd83ddc52d65a22548e478e8
Author: Enrico Forestieri <[email protected]>
Date:   Mon Mar 16 00:34:35 2015 +0100

    Fix bug #9453
    
    This was due to a problem with the QProcess parser.
    See #9453 for details.

diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp
index 5704aa1..229dd2e 100644
--- a/src/support/filetools.cpp
+++ b/src/support/filetools.cpp
@@ -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 + " \" & ";
 }
 
 

Reply via email to