as externally modified.
* src/Buffer.cpp (Buffer::readFile): filenames are always stored
as UTF-8 in the FileName class.
* src/support/FileName.h: correct comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21620
a592a061-630c-0410-9148-
cb99ea01b6c8
// Save the timestamp and checksum of disk file. If filename is an
// emergency file, save the timestamp and sum of the original lyx file
// because isExternallyModified will check for this file. (BUG4193)
- string diskfile = filename.toFilesystemEncoding();
+ string diskfile = filename.absFilename();
if (suffixIs(diskfile, ".emergency"))
diskfile = diskfile.substr(0, diskfile.size() - 10);
saveCheckSum(FileName(diskfile));
protected:
- /// The absolute file name.
- /// The encoding is currently unspecified, anything else than ASCII
- /// may or may not work.
+ /// The absolute file name in UTF-8 encoding.
std::string name_;
};