D5025: py3: make test-contrib-perf.t work on python 3

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Oct 13 05:53:39 EDT 2018


yuja added a comment.


  >   >> - 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[]`.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5025

To: pulkit, #hg-reviewers
Cc: yuja, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list