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:
Tatsuhiro Tsujikawa 2009-02-13 11:28:42 +00:00
parent 9d27eb53f5
commit 34d7cd7a70
20 changed files with 46 additions and 23 deletions

View file

@ -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));