summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3314702)
#include <sstream>
#include <fstream>
#include <sstream>
#include <fstream>
using std::istringstream;
using std::ostream;
using std::string;
namespace lyx {
using std::istringstream;
using std::ostream;
using std::string;
namespace lyx {
+
+using support::FileName;
+
namespace frontend {
ControlLog::ControlLog(Dialog & parent)
namespace frontend {
ControlLog::ControlLog(Dialog & parent)
+ logfile_ = FileName(logfile);
void ControlLog::getContents(std::ostream & ss) const
{
void ControlLog::getContents(std::ostream & ss) const
{
- std::ifstream in(logfile_.c_str());
+ std::ifstream in(logfile_.toFilesystemEncoding().c_str());
+#include "support/filename.h"
+
namespace lyx {
namespace frontend {
namespace lyx {
namespace frontend {
+ support::FileName logfile_;
};
} // namespace frontend
};
} // namespace frontend
string const getListOfOptions(string const & classname, string const & type)
{
string const getListOfOptions(string const & classname, string const & type)
{
- string const filename = getTexFileFromList(classname,type);
+ FileName const filename(getTexFileFromList(classname, type));
+ if (filename.empty())
+ return string();
string optionList = string();
string optionList = string();
- std::ifstream is(filename.c_str());
+ std::ifstream is(filename.toFilesystemEncoding().c_str());
while (is) {
string s;
is >> s;
while (is) {
string s;
is >> s;