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
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user