Convert filenames unicode->ascii
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e7b3d6babb
commit
fc8525d7b0
@ -32,13 +32,13 @@ wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file
|
||||
|
||||
m_Pos = 0;
|
||||
m_Size = 0;
|
||||
m_Archive = (void*) unzOpen(archive);
|
||||
m_Archive = (void*) unzOpen(archive.mb_str(wxConvFile));
|
||||
if (m_Archive == NULL)
|
||||
{
|
||||
m_lasterror = wxStream_READ_ERR;
|
||||
return;
|
||||
}
|
||||
if (unzLocateFile((unzFile)m_Archive, file, 0) != UNZ_OK)
|
||||
if (unzLocateFile((unzFile)m_Archive, file.mb_str(wxConvFile), 0) != UNZ_OK)
|
||||
{
|
||||
m_lasterror = wxStream_READ_ERR;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user