mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Fix encoding problem when reading the latex log file
* src/LaTeX.C (LaTeX::scanLogFile): use from_local8bit instead of from_utf8. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16640 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5f7747d6b6
commit
804360cbd9
@ -682,10 +682,10 @@ int LaTeX::scanLogFile(TeXErrors & terr)
|
||||
}
|
||||
if (line_count <= 5) {
|
||||
// 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));
|
||||
// We have no idea what the encoding of
|
||||
// the log file is, but it is safe to
|
||||
// assume it is the current locale one.
|
||||
terr.insertError(line, from_local8bit(desc), from_local8bit(errstr));
|
||||
++num_errors;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user