]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.cpp
Compile fix for qt versions below 4.6.
[lyx.git] / src / LaTeX.cpp
index f1d7b1a779e4c05598268ac6ab36034f07ed5418..04a86f795a95cd6de5b36fc98e4e3cd03a22662d 100644 (file)
@@ -1046,6 +1046,10 @@ void LaTeX::deplog(DepTable & head)
                        continue;
                }
 
+               // FIXME UNICODE: We assume that the file names in the log
+               // file are in the file system encoding.
+               token = to_utf8(from_filesystem8bit(token));
+
                // Sometimes, filenames are broken across lines.
                // We care for that and save suspicious lines.
                // Here we exclude some cases where we are sure
@@ -1075,10 +1079,6 @@ void LaTeX::deplog(DepTable & head)
 
                smatch sub;
 
-               // FIXME UNICODE: We assume that the file names in the log
-               // file are in the file system encoding.
-               token = to_utf8(from_filesystem8bit(token));
-
                // (1) "File: file.ext"
                if (regex_match(token, sub, reg1)) {
                        // check for dot