From 34d7cd7a7046798fde08fb5df12ee92156546515 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 13 Feb 2009 11:28:42 +0000 Subject: 2009-02-13 Tatsuhiro Tsujikawa 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 --- test/GZipDecoderTest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/GZipDecoderTest.cc') 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)); -- cgit