+ std::ifstream in(logfile_.toFilesystemEncoding().c_str());
+
+ bool success = false;
+
+ if (in) {
+ ss << in.rdbuf();
+ success = ss.good();
+ }
+
+ if (success)
+ return;
+
+ switch (type_) {
+ case LatexLog:
+ ss << lyx::to_utf8(_("No LaTeX log file found."));
+ break;
+ case LiterateLog:
+ ss << lyx::to_utf8(_("No literate programming build log file found."));
+ break;
+ case Lyx2lyxLog:
+ ss << lyx::to_utf8(_("No lyx2lyx error log file found."));
+ break;
+ case VCLog:
+ ss << lyx::to_utf8(_("No version control log file found."));
+ break;
+ }