Write subtitle files in binary mode. tests-on-all-platforms
authorCarl Hetherington <cth@carlh.net>
Mon, 2 May 2022 23:13:34 +0000 (01:13 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 4 May 2022 17:37:38 +0000 (19:37 +0200)
src/interop_subtitle_asset.cc

index f3552abec30f6f01a962014511596431957d6ce9..ce3a494383869b432d706fb8d44666826342dc0a 100644 (file)
@@ -192,7 +192,7 @@ InteropSubtitleAsset::load_font_nodes () const
 void
 InteropSubtitleAsset::write (boost::filesystem::path p) const
 {
-       File f(p, "w");
+       File f(p, "wb");
        if (!f) {
                throw FileError ("Could not open file for writing", p, -1);
        }