]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
* src/frontends/qt4/QTocDialog.C (updateGui):
[lyx.git] / src / lyxrc.C
index 8e070db6e8a8c6119e08ccfa6a642330a9d58872..955ba1ac6bd68000d2f807793993b7a8280488e8 100644 (file)
@@ -295,9 +295,9 @@ void LyXRC::setDefaults() {
        use_converter_cache = false;
        converter_cache_maxage = 6 * 30 * 24 * 3600; // 6 months
 
-       user_name = support::user_name();
+       user_name = to_utf8(support::user_name());
 
-       user_email = support::user_email();
+       user_email = to_utf8(support::user_email());
 }
 
 
@@ -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);
 }