Changeset 8f9bade6 in git


Ignore:
Timestamp:
05/08/16 01:37:55 (3 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
5846a74
Parents:
b049703
Message:

Open movie output in binary mode

1.2.27 changed the movie export code on Microsoft Windows to allow
writing to files with non-ASCII characters in the names, but the
file wasn't opened in binary mode, leading to corrupt output.

Fixes #81, reported by Erin Lynch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gfxcore.cc

    rb049703 r8f9bade6  
    37323732bool GfxCore::ExportMovie(const wxString & fnm)
    37333733{
    3734     FILE* fh = wxFopen(fnm.fn_str(), wxT("w"));
     3734    FILE* fh = wxFopen(fnm.fn_str(), wxT("wb"));
    37353735    if (fh == NULL) {
    37363736        wxGetApp().ReportError(wxString::Format(wmsg(/*Failed to open output file “%s”*/47), fnm.c_str()));
Note: See TracChangeset for help on using the changeset viewer.