use binary mode for writing files

pull/1600/head v0.8.5
Jeff Becker 3 years ago committed by Jason Rhinelander
parent 9f2f9e0f05
commit 68826f10bb

@ -72,7 +72,7 @@ main(int argc, char* argv[])
{
try
{
fs::ofstream ofs{outputfile};
fs::ofstream ofs{outputfile, std::ios::binary};
ofs.exceptions(fs::ofstream::failbit);
ofs << data;
return 0;

Loading…
Cancel
Save