]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.
[lyx.git] / src / lyxrc.C
index 8e070db6e8a8c6119e08ccfa6a642330a9d58872..00aeb0b56cd25758565120877b6633bb9085dd66 100644 (file)
@@ -1215,9 +1215,9 @@ int LyXRC::read(LyXLex & lexrc)
 }
 
 
-void LyXRC::write(string const & filename, bool ignore_system_lyxrc) const
+void LyXRC::write(FileName const & filename, bool ignore_system_lyxrc) const
 {
-       ofstream ofs(filename.c_str());
+       ofstream ofs(filename.toFilesystemEncoding().c_str());
        if (ofs)
                write(ofs, ignore_system_lyxrc);
 }