]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
* Replace all use of 'slashify_path' with 'internal_path'.
[lyx.git] / src / LaTeX.C
index d63ce35b994b8740e7c0e4f18b2fe36d1bde831a..8609c3ed53dc20f92c5167fc0305b71f8574d928 100644 (file)
@@ -384,11 +384,7 @@ int LaTeX::run(TeXErrors & terr)
 
 int LaTeX::startscript()
 {
-#ifndef __EMX__
-       string tmp = cmd + ' ' + QuoteName(file) + " > /dev/null";
-#else // cmd.exe (OS/2) causes SYS0003 error at "/dev/null"
-       string tmp = cmd + ' ' + file + " > nul";
-#endif
+       string tmp = cmd + ' ' + QuoteName(file) + " > " + os::nulldev();
        Systemcall one;
        return one.startscript(Systemcall::Wait, tmp);
 }