]> git.lyx.org Git - lyx.git/blobdiff - src/support/filename.C
Provide do_put methods for inserting all remaining basic type values
[lyx.git] / src / support / filename.C
index 8762717ec1a98a74fd0ebc8322f8b6fcb0a5e67e..8b8a4aee57b8b5d0a0185a8c22f3cf56f338f596 100644 (file)
@@ -14,6 +14,9 @@
 #include "support/filetools.h"
 #include "support/lstrings.h"
 #include "support/os.h"
+#include "support/qstring_helpers.h"
+
+#include <QFile>
 
 #include <boost/assert.hpp>
 
@@ -62,8 +65,8 @@ void FileName::erase()
 
 string const FileName::toFilesystemEncoding() const
 {
-       // FIXME UNICODE: correct encoding not implemented yet
-       return name_;
+       QByteArray const encoded = QFile::encodeName(toqstr(name_));
+       return string(encoded.begin(), encoded.end());
 }