mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
fix another problem with paths with spaces: Quote filenames correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17245 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2148e75116
commit
5e4c02c88b
@ -25,6 +25,8 @@ using std::string;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
using support::quoteName;
|
||||
|
||||
bool Mover::copy(support::FileName const & from, support::FileName const & to,
|
||||
unsigned long int mode) const
|
||||
{
|
||||
@ -69,9 +71,9 @@ bool SpecialisedMover::do_copy(support::FileName const & from, support::FileName
|
||||
}
|
||||
|
||||
string command = support::libScriptSearch(command_);
|
||||
command = support::subst(command, "$$i", from.toFilesystemEncoding());
|
||||
command = support::subst(command, "$$o", to.toFilesystemEncoding());
|
||||
command = support::subst(command, "$$l", latex);
|
||||
command = support::subst(command, "$$i", quoteName(from.toFilesystemEncoding()));
|
||||
command = support::subst(command, "$$o", quoteName(to.toFilesystemEncoding()));
|
||||
command = support::subst(command, "$$l", quoteName(latex));
|
||||
|
||||
support::Systemcall one;
|
||||
return one.startscript(support::Systemcall::Wait, command) == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user