>   >> - cmd = sys.argv[0] +    cmd = fsencode(sys.argv[0])
>   > 
>   > Applying fsencode() on sys.argv is probably wrong on Windows, but it's 
> perf.py,
>   >  I don't care.
>   
>   What's the right way to do it on windows?

I think `encoding.strtolocal()` is close, but I have no idea what's the best
way to get `char *argv[]` back from `wchar_t *argv[]`.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to