From: Enrico Forestieri Date: Tue, 6 Jan 2015 21:06:46 +0000 (+0100) Subject: Fix bug #9342: LaTeX build get stuck for unconventional path name X-Git-Tag: 2.1.3~22 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=383334c1fe72d1f8fc20fb1b9a35b7e041266c4a;p=features.git Fix bug #9342: LaTeX build get stuck for unconventional path name The reason being that the TEXINPUTS path list was not quoted on Windows. This was no problem with spaces but some special characters are interpreted by the shell and can cause problems. In this particular case, the '&' character was being interpreted as a command separator. --- diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 92aeaf7fb4..131e177767 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -605,8 +605,15 @@ string latexEnvCmdPrefix(string const & path) return "env TEXINPUTS=\"." + sep + texinputs_prefix + sep + texinputs + "\" "; else - return "cmd /d /c set TEXINPUTS=." + sep + texinputs_prefix - + sep + texinputs + "&"; +#ifndef USE_QPROCESS + return "cmd /d /c set \"TEXINPUTS=." + + sep + texinputs_prefix + + sep + texinputs + "\"&"; +#else + return "cmd /d /c set \"\"\"TEXINPUTS=." + + sep + texinputs_prefix + + sep + texinputs + "\"\"\"&"; +#endif } diff --git a/status.21x b/status.21x index 409aa2fa3c..4dc124782e 100644 --- a/status.21x +++ b/status.21x @@ -115,6 +115,9 @@ What's new - Do not insert a protected space after some math-spaces (bug 9319). +- Fix problem when some special characters appear in the document directory + name on Windows (bug 9342). + * LYX2LYX