#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)
else
return false;
- logfile_ = logfile;
+ logfile_ = FileName(logfile);
return true;
}
void ControlLog::getContents(std::ostream & ss) const
{
- std::ifstream in(logfile_.c_str());
+ std::ifstream in(logfile_.toFilesystemEncoding().c_str());
bool success = false;