Enrico Forestieri wrote:
> The nulls inserted by MikTeX in the latex log file strike again...
Did anybody report that as a MikTeX bug?
Does this patch (untested) help?
Georg
Index: src/LaTeX.C
===================================================================
--- src/LaTeX.C (Revision 13732)
+++ src/LaTeX.C (Arbeitskopie)
@@ -540,6 +540,10 @@ int LaTeX::scanLogFile(TeXErrors & terr)
string token;
while (getline(ifs, token)) {
+ // MikTeX sometimes inserts \0 in the log file
+ token = subst(token, '\0', '\r');
+ token = subst(token, "\r", "");
+
lyxerr[Debug::LATEX] << "Log line: " << token << endl;
if (token.empty())
@@ -760,7 +764,9 @@ void LaTeX::deplog(DepTable & head)
string token;
getline(ifs, token);
- token = rtrim(token, "\r");
+ // MikTeX sometimes inserts \0 in the log file
+ token = subst(token, '\0', '\r');
+ token = subst(token, "\r", "");
if (token.empty())
continue;