Show More
@@ -579,10 +579,11 b' def spawndetached(args):' | |||
|
579 | 579 | env = '\0' |
|
580 | 580 | env += '\0' |
|
581 | 581 | |
|
582 | args = subprocess.list2cmdline(args) | |
|
582 | args = subprocess.list2cmdline(pycompat.rapply(encoding.strfromlocal, args)) | |
|
583 | 583 | |
|
584 | # TODO: CreateProcessW on py3? | |
|
584 | 585 | res = _kernel32.CreateProcessA( |
|
585 | None, args, None, None, False, _CREATE_NO_WINDOW, | |
|
586 | None, encoding.strtolocal(args), None, None, False, _CREATE_NO_WINDOW, | |
|
586 | 587 | env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi)) |
|
587 | 588 | if not res: |
|
588 | 589 | raise ctypes.WinError() |
@@ -523,7 +523,7 b' def rename(src, dst):' | |||
|
523 | 523 | os.rename(src, dst) |
|
524 | 524 | |
|
525 | 525 | def gethgcmd(): |
|
526 | return [sys.executable] + sys.argv[:1] | |
|
526 | return [encoding.strtolocal(arg) for arg in [sys.executable] + sys.argv[:1]] | |
|
527 | 527 | |
|
528 | 528 | def groupmembers(name): |
|
529 | 529 | # Don't support groups on Windows for now |
General Comments 0
You need to be logged in to leave comments.
Login now