]> git.lyx.org Git - features.git/blobdiff - src/support/tempname.C
Fix bug 3410 by Georg and me
[features.git] / src / support / tempname.C
index c56e1b51a8af746dd8c424d9f248c5bd353bc475..1607fbf5a0dc46eeb92dfdd40cab41c11945f80e 100644 (file)
@@ -100,7 +100,7 @@ FileName const tempName(FileName const & dir, string const & mask)
 
        int const tmpf = make_tempfile(tmpl.get());
        if (tmpf != -1) {
-               string const t(tmpl.get());
+               string const t(to_utf8(from_filesystem8bit(tmpl.get())));
 #if defined (HAVE_CLOSE)
                ::close(tmpf);
 #elif defined (HAVE__CLOSE)