]> git.lyx.org Git - lyx.git/blobdiff - src/output.cpp
Make the session zoom relative to the default zoom
[lyx.git] / src / output.cpp
index 149ba78cea6e9a7fbf3b196784bf20b9cbe635eb..c06cd9efa4396134b6a0418e479c73e1875a0296 100644 (file)
@@ -30,7 +30,7 @@ namespace {
 template<typename OFStream>
 bool doOpenFileWrite(OFStream & ofs, FileName const & fname)
 {
-       ofs.open(fname.toFilesystemEncoding().c_str());
+       ofs.open(fname.toSafeFilesystemEncoding(os::CREATE).c_str());
        if (ofs)
                return true;
        docstring const file = fname.displayName(50);
@@ -40,7 +40,7 @@ bool doOpenFileWrite(OFStream & ofs, FileName const & fname)
        return false;
 }
 
-}
+} // namespace
 
 
 bool openFileWrite(ofstream & ofs, FileName const & fname)