mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Some comments wrt log file encoding (#10728)
This commit is contained in:
parent
7609221ada
commit
94d45d9c56
@ -651,6 +651,9 @@ int LaTeX::scanLogFile(TeXErrors & terr)
|
||||
onlyFileName(changeExtension(file.absFileName(), ".log"));
|
||||
LYXERR(Debug::LATEX, "Log file: " << tmp);
|
||||
FileName const fn = FileName(makeAbsPath(tmp));
|
||||
// FIXME we should use and ifdocstream here and a docstring for token
|
||||
// below. The encoding of the log file depends on the _output_ (font)
|
||||
// encoding of the TeX file (T1, TU etc.). See #10728.
|
||||
ifstream ifs(fn.toFilesystemEncoding().c_str());
|
||||
bool fle_style = false;
|
||||
static regex const file_line_error(".+\\.\\D+:[0-9]+: (.+)");
|
||||
|
@ -307,6 +307,8 @@ void GuiLog::getContents(ostream & ss) const
|
||||
// FIXME UNICODE
|
||||
// Our caller interprets the file contents as UTF8, but is that
|
||||
// correct?
|
||||
// spitz: No it isn't (generally). The log file encoding depends on the TeX
|
||||
// _output_ encoding (T1 etc.). We should account for that. See #10728.
|
||||
if (in) {
|
||||
ss << in.rdbuf();
|
||||
success = ss.good();
|
||||
|
Loading…
Reference in New Issue
Block a user