summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-03 01:13:34 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-04 19:37:38 +0200
commita43d2a3283c5e5dcbdb40154b5701deec7966fd5 (patch)
tree2130cba419e84059012513ce30b021b011890ea7
parent6463d35003b0705e2a0d67e67e0e321d30551e43 (diff)
Write subtitle files in binary mode.tests-on-all-platforms
-rw-r--r--src/interop_subtitle_asset.cc2
1 files changed, 1 insertions, 1 deletions
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);
}