diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-02-13 11:28:42 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-02-13 11:28:42 +0000 |
| commit | 34d7cd7a7046798fde08fb5df12ee92156546515 (patch) | |
| tree | 325282e832726459c5bf9c2d41d1e014511ee3c2 /test/SingleFileAllocationIteratorTest.cc | |
| parent | 9d27eb53f59384eab7e9f11e5f327b2b650949d2 (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/SingleFileAllocationIteratorTest.cc')
| -rw-r--r-- | test/SingleFileAllocationIteratorTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SingleFileAllocationIteratorTest.cc b/test/SingleFileAllocationIteratorTest.cc index 39d2bc02..02c5e9d2 100644 --- a/test/SingleFileAllocationIteratorTest.cc +++ b/test/SingleFileAllocationIteratorTest.cc @@ -27,7 +27,7 @@ void SingleFileAllocationIteratorTest::testAllocate() std::string dir = "/tmp"; std::string fname = "aria2_SingleFileAllocationIteratorTest_testAllocate"; std::string fn = dir+"/"+fname; - std::ofstream of(fn.c_str()); + std::ofstream of(fn.c_str(), std::ios::binary); of << "0123456789"; of.close(); |
