We have a GUI program that had been running on wxWidgets-2.8.12 on Mac without a problem, but now that we've moved to 3.0.3 we're hitting problems opening ZIP files with Brazillian Portgueuse characters in the filename. An example would be something like this:
Code: Select all
wxString filename = ".../MoldurasPadrão1.mpk";
wxString base = filename + "#zip:);
wxString path = "element.txt";
wxFileSystem fs;
FSFile *fsf = fs.OpenFile (base + path);
Code: Select all
#include <wx/app.h>
#include <wx/string.h>
#include <wx/uri.h>
class MyApp : public wxApp {
bool OnInit (void) {
wxString path = wxURI::Unescape ("MoldurasPadrão1.mpk");
return false;
}
};
wxIMPLEMENT_APP (MyApp);
Code: Select all
configure --with-macosx-version-min=10.9 --enable-compat26 --disable-shared --enable-stl --enable-debug --with-flavour=debug
The strange this is, if I just compile and run this, I don't get an assert, which makes me think maybe we're not intialising something wxWidgets needs in the GUI version.
Code: Select all
#include <wx/string.h>
#include <wx/uri.h>
int main (void)
{
wxString path = wxURI::Unescape ("MoldurasPadrão1.mpk");
return 0;
}