// Purpose: input stream for ZIP archive access
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
-// Licence: wxWindows Licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
m_Pos = 0;
m_Size = 0;
- m_Archive = (void*) unzOpen(archive.mb_str());
+ m_Archive = (void*) unzOpen(archive.mb_str(wxConvFile));
if (m_Archive == NULL)
{
m_lasterror = wxSTREAM_READ_ERROR;
return;
}
- if (unzLocateFile((unzFile)m_Archive, file.mb_str(), 0) != UNZ_OK)
+ // TODO what encoding does ZIP use?
+ if (unzLocateFile((unzFile)m_Archive, file.ToAscii(), 0) != UNZ_OK)
{
m_lasterror = wxSTREAM_READ_ERROR;
return;