file = ifile;
if(! wxIsAbsolutePath(file))
{
- char* f = wxGetWorkingDirectory();
+ wxChar* f = wxGetWorkingDirectory();
file = f;
delete[] f; // wxGetWorkingDirectory returns new memory
file << WXEXTHELP_SEPARATOR << ifile;
newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName();
if(wxDirExists(newfile))
file = newfile;
+ else
+ {
+ newfile = WXEXTHELP_SEPARATOR;
+ const wxChar *cptr = wxGetLocale()->GetName().c_str();
+ while(*cptr && *cptr != _T('_'))
+ newfile << *(cptr++);
+ if(wxDirExists(newfile))
+ file = newfile;
+ }
}
if(! wxDirExists(file))
m_MapList = new wxList;
m_NumOfEntries = 0;
- FILE *input = fopen(mapFile.c_str(),"rt");
+ FILE *input = fopen(mapFile.fn_str(),"rt");
if(! input)
return FALSE;
do