summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.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/FileAllocationCommand.cc
parent45686860e1b5e94bfa8fa95603f101cce53ed4b1 (diff)
In MinGW32, open file with UNICODE filename and print them in ANSI.
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index 84e28e06..e0b16e6a 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -96,7 +96,8 @@ bool FileAllocationCommand::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;
}