I have a problem with a small console app I wrote.
I detect a bug (in my app) when I pass args with characters like é,è,...
After a lot of test, I can reproduce the problem with a very small code :
Code: Select all
int main(int argc, char **argv)
{
wxInitialize();
wxCmdLineParser pp(argc,argv);
pp.AddParam(_("File to open"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
pp.SetSwitchChars (wxT("-"));
if (pp.Parse()!=0) return false;
if (pp.GetParamCount()!=0)
{
wxPuts(pp.GetParams(0));
if (wxFileExists(pp.GetParam(0))) wxPuts("OK");
return false;
}
}
I think it's an encoding pb, but I can't find any solutions...
If someone can help me...
Thanks in advance !
AlicVB