diff --git a/simgear/package/Root.cxx b/simgear/package/Root.cxx index f38f7e93..ca567218 100644 --- a/simgear/package/Root.cxx +++ b/simgear/package/Root.cxx @@ -217,7 +217,7 @@ public: } SGPath cachePath = path / "ThumbnailCache" / (hash + url.substr(pos)); - sg_ofstream fstream(cachePath, std::ios::out | std::ios::trunc); + sg_ofstream fstream(cachePath, std::ios::out | std::ios::trunc | std::ios::binary); fstream.write(imageBytes.data(), imageBytes.size()); fstream.close(); }