From 383334c1fe72d1f8fc20fb1b9a35b7e041266c4a Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 6 Jan 2015 22:06:46 +0100 Subject: [PATCH] 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. --- src/support/filetools.cpp | 11 +++++++++-- status.21x | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) 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 -- 2.39.5