mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Account for unicode chars in tempdir path on Windows
This commit is contained in:
parent
31cd421bcd
commit
a5377ead20
@ -1313,7 +1313,7 @@ Buffer::ReadStatus Buffer::convertLyXFormat(FileName const & fn,
|
||||
command << os::python()
|
||||
<< ' ' << quoteName(lyx2lyx.toFilesystemEncoding())
|
||||
<< " -t " << convert<string>(LYX_FORMAT)
|
||||
<< " -o " << quoteName(tmpfile.toFilesystemEncoding())
|
||||
<< " -o " << quoteName(tmpfile.toSafeFilesystemEncoding())
|
||||
<< ' ' << quoteName(fn.toSafeFilesystemEncoding());
|
||||
string const command_str = command.str();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user