]> git.lyx.org Git - features.git/commitdiff
fix bug 1526 (quote correctly file name for bibtex and makeindex)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 20 Apr 2004 12:45:07 +0000 (12:45 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 20 Apr 2004 12:45:07 +0000 (12:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8684 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LaTeX.C

index 2fd3e76a029a11eeb8da86a6ae03799400cc56eb..76ed58e39309944f18cb8dc99265eb98212673da 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-18  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * LaTeX.C (runMakeIndex, runBibTeX): quote correctly file name
+       (bug 1526)
+
 2004-04-19  Angus Leeming  <leeming@lyx.org>
 
        * BufferView_pimpl.C (setBuffer): changed preview interface.
index 4a54f6e4926031963924f3a011003f50bc13882b..845fdc322dae602e293dda71d843b1550b84fcf0 100644 (file)
@@ -404,7 +404,7 @@ bool LaTeX::runMakeIndex(string const & f)
        // to be able to make style files from within LyX. This has
        // to come for a later time.
        string tmp = "makeindex -c -q ";
-       tmp += f;
+       tmp += QuoteName(f);
        Systemcall one;
        one.startscript(Systemcall::Wait, tmp);
        return true;
@@ -528,7 +528,7 @@ bool LaTeX::runBibTeX(vector<Aux_Info> const & bibtex_info)
                result = true;
 
                string tmp = lyxrc.bibtex_command + " ";
-               tmp += OnlyFilename(ChangeExtension(it->aux_file, string()));
+               tmp += QuoteName(OnlyFilename(ChangeExtension(it->aux_file, string())));
                Systemcall one;
                one.startscript(Systemcall::Wait, tmp);
        }