From a43d2a3283c5e5dcbdb40154b5701deec7966fd5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 May 2022 01:13:34 +0200 Subject: [PATCH] Write subtitle files in binary mode. --- src/interop_subtitle_asset.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index f3552abe..ce3a4943 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -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); } -- 2.30.2