summaryrefslogtreecommitdiff
path: root/src/IteratableChunkChecksumValidator.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/IteratableChunkChecksumValidator.cc
parent45686860e1b5e94bfa8fa95603f101cce53ed4b1 (diff)
In MinGW32, open file with UNICODE filename and print them in ANSI.
Diffstat (limited to 'src/IteratableChunkChecksumValidator.cc')
-rw-r--r--src/IteratableChunkChecksumValidator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IteratableChunkChecksumValidator.cc b/src/IteratableChunkChecksumValidator.cc
index 475e3b06..18f20893 100644
--- a/src/IteratableChunkChecksumValidator.cc
+++ b/src/IteratableChunkChecksumValidator.cc
@@ -143,7 +143,7 @@ std::string IteratableChunkChecksumValidator::digest(off_t offset, size_t length
curoffset);
if(r == 0 || r < static_cast<size_t>(woffset)) {
throw DL_ABORT_EX
- (fmt(EX_FILE_READ, dctx_->getBasePath().c_str(),
+ (fmt(EX_FILE_READ, utf8ToNative(dctx_->getBasePath()).c_str(),
"data is too short"));
}
size_t wlength;