Skip to content

Commit 03150b3

Browse files
authored
Merge pull request #5633 from NatLabRockies/hotfix/5629_UTF8BOM
Hotfix #5629 - read_as_string should open as binary
2 parents 79253ab + 6e4c57b commit 03150b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utilities/core/FilesystemHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace filesystem {
3535
}
3636

3737
std::string read_as_string(const openstudio::path& t_path) {
38-
openstudio::filesystem::ifstream f(t_path);
38+
openstudio::filesystem::ifstream f(t_path, std::ios_base::binary);
3939
return read_as_string(f);
4040
}
4141

0 commit comments

Comments
 (0)