From e98e9106df225b9e19a45a6f0e44193b1d018461 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 28 Jul 2004 04:02:22 +0000 Subject: use copyfile method that doesnt squish filenames into latin1, so copying files with extended characters doesn't fail after ir receive --- (limited to 'core/obex') diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp index 8885256..d4ae323 100644 --- a/core/obex/receiver.cpp +++ b/core/obex/receiver.cpp @@ -7,6 +7,7 @@ using namespace OpieObex; #include #include #include +#include using namespace Opie::Core; /* QT */ @@ -195,8 +196,13 @@ QString OtherHandler::targetName( const QString& file ) { /* fast cpy */ void OtherHandler::copy(const QString& src, const QString& file) { owarn << "src " << src << ", dest " << file << "" << oendl; - QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). - arg( Global::shellQuote( file ) ); - ::system( cmd.latin1() ); + FileManager *fm; + if(!fm->copyFile(src,file)) { + owarn << "Copy failed" << oendl; + } + +// QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). +// arg( Global::shellQuote( file ) ); +// ::system( cmd.latin1() ); // done } -- cgit v0.9.0.2