Author: rgheck
Date: Tue May 31 17:30:22 2011
New Revision: 38901
URL: http://www.lyx.org/trac/changeset/38901

Log:
Fix for bug #7360. Patch from Nemah, posted to bug report.

Modified:
   lyx-devel/trunk/src/LaTeX.cpp

Modified: lyx-devel/trunk/src/LaTeX.cpp
==============================================================================
--- lyx-devel/trunk/src/LaTeX.cpp       Tue May 31 17:21:23 2011        (r38900)
+++ lyx-devel/trunk/src/LaTeX.cpp       Tue May 31 17:30:22 2011        (r38901)
@@ -1046,6 +1046,10 @@
                        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 @@
 
                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

Reply via email to