]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / converter.C
index 18dddd33dc3869effef6c00e4a194c8a0b7067af..7d8bb710ebc89cbba18a78e50f1be800a61e85d8 100644 (file)
@@ -337,7 +337,10 @@ bool Converters::convert(Buffer const * buffer,
                                                        from_ascii(from_format), from_ascii(to_format)));
                return false;
        }
-       OutputParams runparams;
+
+       // buffer is only invalid for importing, and then runparams is not
+       // used anyway.
+       OutputParams runparams(buffer ? &buffer->params().encoding() : 0);
        runparams.flavor = getFlavor(edgepath);
 
        // Some converters (e.g. lilypond) can only output files to the
@@ -561,7 +564,7 @@ bool Converters::formatIsUsed(string const & format)
 bool Converters::scanLog(Buffer const & buffer, string const & /*command*/,
                         FileName const & filename, ErrorList & errorList)
 {
-       OutputParams runparams;
+       OutputParams runparams(0);
        runparams.flavor = OutputParams::LATEX;
        LaTeX latex("", runparams, filename);
        TeXErrors terr;