From 3879da592d689d551778b710c21c8a95d2874ab3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 4 Aug 2011 21:43:02 +0900 Subject: In MinGW32, open file with UNICODE filename and print them in ANSI. --- src/CheckIntegrityCommand.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/CheckIntegrityCommand.cc') diff --git a/src/CheckIntegrityCommand.cc b/src/CheckIntegrityCommand.cc index c4284211..60521e14 100644 --- a/src/CheckIntegrityCommand.cc +++ b/src/CheckIntegrityCommand.cc @@ -73,7 +73,8 @@ bool CheckIntegrityCommand::executeInternal() if(getRequestGroup()->downloadFinished()) { A2_LOG_NOTICE (fmt(MSG_VERIFICATION_SUCCESSFUL, - getRequestGroup()->getDownloadContext()->getBasePath().c_str())); + utf8ToNative(getRequestGroup()->getDownloadContext() + ->getBasePath()).c_str())); std::vector* commands = new std::vector(); auto_delete_container > commandsDel(commands); entry_->onDownloadFinished(*commands, getDownloadEngine()); @@ -82,7 +83,8 @@ bool CheckIntegrityCommand::executeInternal() } else { A2_LOG_ERROR (fmt(MSG_VERIFICATION_FAILED, - getRequestGroup()->getDownloadContext()->getBasePath().c_str())); + utf8ToNative(getRequestGroup()->getDownloadContext() + ->getBasePath()).c_str())); std::vector* commands = new std::vector(); auto_delete_container > commandsDel(commands); entry_->onDownloadIncomplete(*commands, getDownloadEngine()); @@ -106,7 +108,8 @@ bool CheckIntegrityCommand::handleException(Exception& e) A2_LOG_ERROR (fmt(MSG_DOWNLOAD_NOT_COMPLETE, getCuid(), - getRequestGroup()->getDownloadContext()->getBasePath().c_str())); + utf8ToNative(getRequestGroup()->getDownloadContext() + ->getBasePath()).c_str())); return true; } -- cgit