summaryrefslogtreecommitdiff
path: root/test/GZipDecoderTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-13 11:28:42 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-13 11:28:42 +0000
commit34d7cd7a7046798fde08fb5df12ee92156546515 (patch)
tree325282e832726459c5bf9c2d41d1e014511ee3c2 /test/GZipDecoderTest.cc
parent9d27eb53f59384eab7e9f11e5f327b2b650949d2 (diff)
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Open file in binary mode. * src/CookieStorage.cc * src/DHTSetup.cc * src/DHTUtil.cc * src/Netrc.cc * src/NsCookieParser.cc * src/ProtocolDetector.cc * src/RequestGroupMan.cc * src/Signature.cc * src/bencode.cc * src/download_helper.cc * src/option_processing.cc * test/CookieParserTest.cc * test/DefaultBtProgressInfoFileTest.cc * test/FileTest.cc * test/GZipDecoderTest.cc * test/RequestGroupManTest.cc * test/SignatureTest.cc * test/SingleFileAllocationIteratorTest.cc * test/UriListParserTest.cc
Diffstat (limited to 'test/GZipDecoderTest.cc')
-rw-r--r--test/GZipDecoderTest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/GZipDecoderTest.cc b/test/GZipDecoderTest.cc
index 7b7eaf49..c42019fc 100644
--- a/test/GZipDecoderTest.cc
+++ b/test/GZipDecoderTest.cc
@@ -34,8 +34,8 @@ void GZipDecoderTest::testDecode()
std::string outfile("/tmp/aria2_GZipDecoderTest_testDecode");
char buf[4096];
- std::ifstream in("gzip_decode_test.gz");
- std::ofstream out(outfile.c_str());
+ std::ifstream in("gzip_decode_test.gz", std::ios::binary);
+ std::ofstream out(outfile.c_str(), std::ios::binary);
while(in) {
in.read(buf, sizeof(buf));