]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
* allow resizing of detached panel
[lyx.git] / src / LaTeX.C
index 64afbe93c633d7a03bfcfab7641fbadc214010a5..9a81f8fea5536d42c71a636394c0c52e8449d385 100644 (file)
@@ -95,8 +95,8 @@ docstring runMessage(unsigned int count)
  * CLASS TEXERRORS
  */
 
-void TeXErrors::insertError(int line, string const & error_desc,
-                           string const & error_text)
+void TeXErrors::insertError(int line, docstring const & error_desc,
+                           docstring const & error_text)
 {
        Error newerr(line, error_desc, error_text);
        errors.push_back(newerr);
@@ -671,7 +671,11 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                                        last_line = line;
                                }
                                if (line_count <= 5) {
-                                       terr.insertError(line, desc, errstr);
+                                       // FIXME UNICODE
+                                       // We have no idea what the encoding of the log file is
+                                       // (probably pure ascii, but maybe some localized
+                                       // latex compilers or packages exist)
+                                       terr.insertError(line, from_utf8(desc), from_utf8(errstr));
                                        ++num_errors;
                                }
                        }
@@ -721,7 +725,7 @@ void handleFoundFile(string const & ff, DepTable & head)
                lyxerr[Debug::DEPEND] << "AbsolutePath file: "
                                      << foundfile << endl;
                // On initial insert we want to do the update at once
-               // since this file can not be a file generated by
+               // since this file cannot be a file generated by
                // the latex run.
                if (fs::exists(foundfile) && !fs::is_directory(foundfile))
                        head.insert(foundfile, true);