X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlLog.C;h=1ce66963a84b65aa5c2f17512c6ca781e0df7e49;hb=534095ce9e82d0b0f875540f7306ff218df3b5aa;hp=e138e67a12027debcbb4a56b2a6c7121b62d7625;hpb=3314702bf166367e1883b90fc47367c88ddf72fd;p=lyx.git diff --git a/src/frontends/controllers/ControlLog.C b/src/frontends/controllers/ControlLog.C index e138e67a12..1ce66963a8 100644 --- a/src/frontends/controllers/ControlLog.C +++ b/src/frontends/controllers/ControlLog.C @@ -19,13 +19,14 @@ #include #include -using lyx::docstring; - using std::istringstream; using std::ostream; using std::string; namespace lyx { + +using support::FileName; + namespace frontend { ControlLog::ControlLog(Dialog & parent) @@ -61,7 +62,7 @@ bool ControlLog::initialiseParams(string const & data) else return false; - logfile_ = logfile; + logfile_ = FileName(logfile); return true; } @@ -95,7 +96,7 @@ docstring 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;