]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlLog.C
more unicode filenames
[lyx.git] / src / frontends / controllers / ControlLog.C
index 026319f215ca54239559d5d9165738f67c5b57c1..1ce66963a84b65aa5c2f17512c6ca781e0df7e49 100644 (file)
@@ -24,6 +24,9 @@ using std::ostream;
 using std::string;
 
 namespace lyx {
+
+using support::FileName;
+
 namespace frontend {
 
 ControlLog::ControlLog(Dialog & parent)
@@ -59,7 +62,7 @@ bool ControlLog::initialiseParams(string const & data)
        else
                return false;
 
-       logfile_ = logfile;
+       logfile_ = FileName(logfile);
        return true;
 }
 
@@ -70,21 +73,21 @@ void ControlLog::clearParams()
 }
 
 
-string const ControlLog::title() const
+docstring const ControlLog::title() const
 {
-       string t;
+       docstring t;
        switch (type_) {
        case LatexLog:
-               t = lyx::to_utf8(_("LaTeX Log"));
+               t = _("LaTeX Log");
                break;
        case LiterateLog:
-               t = lyx::to_utf8(_("Literate Programming Build Log"));
+               t = _("Literate Programming Build Log");
                break;
        case Lyx2lyxLog:
-               t = lyx::to_utf8(_("lyx2lyx Error Log"));
+               t = _("lyx2lyx Error Log");
                break;
        case VCLog:
-               t = lyx::to_utf8(_("Version Control Log"));
+               t = _("Version Control Log");
                break;
        }
        return t;
@@ -93,7 +96,7 @@ string const ControlLog::title() const
 
 void ControlLog::getContents(std::ostream & ss) const
 {
-       std::ifstream in(logfile_.c_str());
+       std::ifstream in(logfile_.toFilesystemEncoding().c_str());
 
        bool success = false;