diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-04 21:43:02 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-04 21:43:02 +0900 |
| commit | 3879da592d689d551778b710c21c8a95d2874ab3 (patch) | |
| tree | 121df06eeb860738ff2c5b6abd3c89fb8b09db7b /src/FileEntry.h | |
| parent | 45686860e1b5e94bfa8fa95603f101cce53ed4b1 (diff) | |
In MinGW32, open file with UNICODE filename and print them in ANSI.
Diffstat (limited to 'src/FileEntry.h')
| -rw-r--r-- | src/FileEntry.h | 5 |
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) { |
