summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/test/namedtempfile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/test/namedtempfile.h b/indra/test/namedtempfile.h
index 525a35000d..3a994ae798 100644
--- a/indra/test/namedtempfile.h
+++ b/indra/test/namedtempfile.h
@@ -70,7 +70,7 @@ public:
void peep()
{
std::cout << "File '" << mPath << "' contains:\n";
- boost::filesystem::ifstream reader(mPath);
+ boost::filesystem::ifstream reader(mPath, std::ios::binary);
std::string line;
while (std::getline(reader, line))
std::cout << line << '\n';
@@ -103,7 +103,7 @@ protected:
{
// Create file in a temporary place.
mPath = temp_path(pfx, sfx);
- boost::filesystem::ofstream out{ mPath };
+ boost::filesystem::ofstream out{ mPath, std::ios::binary };
// Write desired content.
func(out);
}