summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-04 21:43:02 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-04 21:43:02 +0900
commit3879da592d689d551778b710c21c8a95d2874ab3 (patch)
tree121df06eeb860738ff2c5b6abd3c89fb8b09db7b /src/CheckIntegrityCommand.cc
parent45686860e1b5e94bfa8fa95603f101cce53ed4b1 (diff)
In MinGW32, open file with UNICODE filename and print them in ANSI.
Diffstat (limited to 'src/CheckIntegrityCommand.cc')
-rw-r--r--src/CheckIntegrityCommand.cc9
1 files changed, 6 insertions, 3 deletions
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<Command*>* commands = new std::vector<Command*>();
auto_delete_container<std::vector<Command*> > 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<Command*>* commands = new std::vector<Command*>();
auto_delete_container<std::vector<Command*> > 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;
}