Commits

Philip Jenvey  committed 2d36a06

py3 str envs need CREATE_UNICODE_ENVIRONMENT

  • Participants
  • Parent commits 60f1685
  • Branches py3k

Comments (0)

Files changed (1)

File lib_pypy/_subprocess.py

             si.hStdError = int(startup_info.hStdError)
 
     pi = _PROCESS_INFORMATION()
+    flags |= CREATE_UNICODE_ENVIRONMENT
 
     if env is not None:
         envbuf = ""
     return _handle(pi.hProcess), _handle(pi.hThread), pi.dwProcessID, pi.dwThreadID
 STARTF_USESHOWWINDOW = 0x001
 STARTF_USESTDHANDLES = 0x100
-SW_HIDE              = 0
-CREATE_NEW_CONSOLE       = 0x010
+SW_HIDE = 0
+CREATE_NEW_CONSOLE = 0x010
 CREATE_NEW_PROCESS_GROUP = 0x200
+CREATE_UNICODE_ENVIRONMENT = 0x400
 
 def WaitForSingleObject(handle, milliseconds):
     res = _WaitForSingleObject(int(handle), milliseconds)