On Mon, May 11, 2009 at 12:12:41PM +0200, Abdelrazak Younes wrote:

> Enrico Forestieri wrote:
> > On Mon, May 11, 2009 at 11:59:00AM +0200, Abdelrazak Younes wrote:
> >
> >   
> >> Enrico Forestieri wrote:
> >>     
> >>> The attached (dirty&quick) patch would work.
> >>>       
> >> Unfortunately not, I already tried that.
> >>     
> >
> > Strange, I tried it and I am able to typeset a document.
> >   
> 
> Well, I didn't even try to typeset as the 'reconfigure' step did not 
> work, even with double-quotes.

Please, try the attached patch. There was another glitch (and who knows
how many others...) to account for.

However, now I am not able to see the output in the console while
LyX is reconfiguring... not good.

-- 
Enrico
Index: src/support/Systemcall.cpp
===================================================================
--- src/support/Systemcall.cpp  (revision 29626)
+++ src/support/Systemcall.cpp  (working copy)
@@ -22,7 +22,7 @@
 
 #include <QProcess>
 
-#define DISABLE_EVALUATE_QPROCESS
+//#define DISABLE_EVALUATE_QPROCESS
 
 using namespace std;
 
Index: src/support/filetools.cpp
===================================================================
--- src/support/filetools.cpp   (revision 29626)
+++ src/support/filetools.cpp   (working copy)
@@ -137,7 +137,7 @@ string const quoteName(string const & na
                // a python script instead, where we don't have these
                // limitations.
                return (os::shell() == os::UNIX) ?
-                       '\'' + name + '\'':
+                       '"' + name + '"':
                        '"' + name + '"';
        case quote_python:
                return "\"" + subst(subst(name, "\\", "\\\\"), "\"", "\\\"")
Index: src/support/Package.cpp
===================================================================
--- src/support/Package.cpp     (revision 29626)
+++ src/support/Package.cpp     (working copy)
@@ -146,7 +146,7 @@ Package::Package(string const & command_
 
        FileName const configure_script(addName(system_support().absFilename(), 
"configure.py"));
        configure_command_ = os::python() + ' ' +
-                       quoteName(configure_script.toFilesystemEncoding()) +
+                       quoteName(configure_script.toFilesystemEncoding(), 
quote_python) +
                        with_version_suffix();
 
        LYXERR(Debug::INIT, "<package>\n"

Reply via email to