From 78fa6abc083a99cc0b1e536a43c3a7da91d9fdb7 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 31 May 2011 15:30:22 +0000 Subject: [PATCH] Fix for bug #7360. Patch from Nemah, posted to bug report. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38901 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index f1d7b1a779..04a86f795a 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -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