diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index d322d77547..8c928d263a 100644 --- a/src/common/fs_zip.cpp +++ b/src/common/fs_zip.cpp @@ -151,7 +151,7 @@ wxString wxZipFSHandler::FindFirst(const wxString& spec, int flags) m_ZipFile = left; wxString nativename = wxFileSystem::URLToFileName(m_ZipFile).GetFullPath(); - m_Archive = (void*) unzOpen(nativename.fn_str()); + m_Archive = (void*) unzOpen(nativename.mb_str(wxConvFile)); m_Pattern = right.AfterLast(wxT('/')); m_BaseDir = right.BeforeLast(wxT('/')); diff --git a/src/common/zipstrm.cpp b/src/common/zipstrm.cpp index 9401ef1c1a..d01d464df2 100644 --- a/src/common/zipstrm.cpp +++ b/src/common/zipstrm.cpp @@ -40,7 +40,7 @@ wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file m_Pos = 0; m_Size = 0; - m_Archive = (void*) unzOpen(archive.fn_str()); + m_Archive = (void*) unzOpen(archive.mb_str(wxConvFile)); if (m_Archive == NULL) { m_lasterror = wxSTREAM_READ_ERROR;