From 6a90fdef69f0f83a98f591a44af3d9a81e111da4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 18 Aug 2015 13:32:03 +0100 Subject: Fix corruption of font files on Windows. --- src/interop_subtitle_asset.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 620fed73..fbdd839b 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -159,7 +159,7 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const BOOST_FOREACH (shared_ptr i, _load_font_nodes) { boost::filesystem::path file = p.parent_path() / i->uri; - FILE* f = fopen_boost (file, "w"); + FILE* f = fopen_boost (file, "wb"); if (!f) { throw FileError ("could not open font file for writing", file, errno); } -- cgit v1.2.3