X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28ea89b62b322ea36aadb65d35caef1b0cf5de5d..da8cf7236e48410e095c2ff50efe0c013ed89078:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 4ca21c436e..bd6fa67c3d 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -571,7 +571,7 @@ bool wxDocument::DoSaveDocument(const wxString& file) msgTitle = wxString(_("File error")); #if wxUSE_STD_IOSTREAM - wxSTD ofstream store(file.mb_str()); + wxSTD ofstream store(file.mb_str(), wxSTD ios::binary); if (store.fail() || store.bad()) #else wxFileOutputStream store(file); @@ -597,7 +597,7 @@ bool wxDocument::DoSaveDocument(const wxString& file) bool wxDocument::DoOpenDocument(const wxString& file) { #if wxUSE_STD_IOSTREAM - wxSTD ifstream store(file.mb_str()); + wxSTD ifstream store(file.mb_str(), wxSTD ios::binary); if (!store.fail() && !store.bad()) #else wxFileInputStream store(file);