summaryrefslogtreecommitdiff
path: root/src/FileEntry.h
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/FileEntry.h
parent45686860e1b5e94bfa8fa95603f101cce53ed4b1 (diff)
In MinGW32, open file with UNICODE filename and print them in ANSI.
Diffstat (limited to 'src/FileEntry.h')
-rw-r--r--src/FileEntry.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h
index 1a321683..ce202d57 100644
--- a/src/FileEntry.h
+++ b/src/FileEntry.h
@@ -49,6 +49,7 @@
#include "error_code.h"
#include "A2STR.h"
#include "TimerA2.h"
+#include "util.h"
namespace aria2 {
@@ -316,9 +317,9 @@ void writeFilePath
}
} else {
if(memory) {
- o << "[MEMORY]" << File(e->getPath()).getBasename();
+ o << "[MEMORY]" << utf8ToNative(File(e->getPath()).getBasename());
} else {
- o << e->getPath();
+ o << utf8ToNative(e->getPath());
}
size_t count = countRequestedFileEntry(first, last);
if(count > 1) {