diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-09-08 09:50:38 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-09-08 09:50:38 -0400 |
commit | eb8458587537e06df23447db56b9910a0d4e451e (patch) | |
tree | 921ca9935613027ac711d4319b90ae13a980c71a /indra | |
parent | a45c9f68c3e2600f48b25cc5cc74ef47cd83005b (diff) |
SL-18837: NamedTempFile must be binary mode on Windows.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/test/namedtempfile.h | 4 |
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); } |