/pack/cvsroots/wxwindows/wxWindows/src/msw/regconf.cpp,v <-- regconf.cpp
new revision: 1.48; previous revision: 1.47
+31. Cleanup of ZIP charset conversion in Unicode build
+
+Checking in fs_zip.cpp;
+/pack/cvsroots/wxwindows/wxWindows/src/common/fs_zip.cpp,v <-- fs_zip.cpp
+new revision: 1.27; previous revision: 1.26
+done
+Checking in zipstrm.cpp;
+/pack/cvsroots/wxwindows/wxWindows/src/common/zipstrm.cpp,v <-- zipstrm.cpp
+new revision: 1.10; previous revision: 1.9
+done
+
TODO for 2.4 (items that are not backports)
===========================================
m_ZipFile = left;
wxString nativename = wxFileSystem::URLToFileName(m_ZipFile).GetFullPath();
- m_Archive = (void*) unzOpen(nativename.mb_str());
+ m_Archive = (void*) unzOpen(nativename.fn_str());
m_Pattern = right.AfterLast(wxT('/'));
m_BaseDir = right.BeforeLast(wxT('/'));
{
unzGetCurrentFileInfo((unzFile)m_Archive, NULL, namebuf, 1024, NULL, 0, NULL, 0);
for (c = namebuf; *c; c++) if (*c == '\\') *c = '/';
- namestr = wxString::FromAscii( namebuf ); // TODO what encoding does ZIP use?
+ namestr = wxString::FromAscii(namebuf); // TODO what encoding does ZIP use?
if (m_AllowDirs)
{
m_Pos = 0;
m_Size = 0;
- m_Archive = (void*) unzOpen(archive.mb_str());
+ m_Archive = (void*) unzOpen(archive.fn_str());
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;