[Python-Dev] Suggested PySys_SetArgv use with a (char **) argv ?
"Martin v. Löwis"
martin at v.loewis.de
Wed Jul 8 08:13:18 CEST 2009
> The reason I was a big vague is that I'm not really bothered HOW its
> done, I'd just like there to be some way to use PySys_SetArgv with a
> (char **)
Ok, that's easy:
void PySys_SetArgvChar(int argc, char** argv)
{
PySys_SetArgv(0, NULL);
}
So you don't bother *how* it's done as long as you can pass char**
in some way.
> Alternately a function to convert the char **argv to wchar_t **argv
> could be ok too.
Convert in what manner? What is the encoding of your char**?
Regards,
Martin
More information about the Python-Dev
mailing list