##// END OF EJS Templates
py3: resolve Unicode issues around `hg serve` on Windows...
Matt Harbison -
r39755:255d1885 default
parent child Browse files
Show More
@@ -579,10 +579,11 b' def spawndetached(args):'
579 env = '\0'
579 env = '\0'
580 env += '\0'
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 res = _kernel32.CreateProcessA(
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 env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi))
587 env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi))
587 if not res:
588 if not res:
588 raise ctypes.WinError()
589 raise ctypes.WinError()
@@ -523,7 +523,7 b' def rename(src, dst):'
523 os.rename(src, dst)
523 os.rename(src, dst)
524
524
525 def gethgcmd():
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 def groupmembers(name):
528 def groupmembers(name):
529 # Don't support groups on Windows for now
529 # Don't support groups on Windows for now
General Comments 0
You need to be logged in to leave comments. Login now