]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlLog.C
more unicode filenames
[lyx.git] / src / frontends / controllers / ControlLog.C
index e138e67a12027debcbb4a56b2a6c7121b62d7625..1ce66963a84b65aa5c2f17512c6ca781e0df7e49 100644 (file)
 #include <sstream>
 #include <fstream>
 
-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;