Skip to content

Commit 832cb70

Browse files
committed
Cygwin: spawn: drop CREATE_SEPARATE_WOW_VDM process flag
This is outdated and should have been removed when we dropped 32 bit support. Signed-off-by: Corinna Vinschen <corinna@vinschen.de> (cherry picked from commit cdc622a)
1 parent c64884c commit 832cb70

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

winsup/cygwin/spawn.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
401401
c_flags = GetPriorityClass (GetCurrentProcess ());
402402
sigproc_printf ("priority class %d", c_flags);
403403

404-
c_flags |= CREATE_SEPARATE_WOW_VDM | CREATE_UNICODE_ENVIRONMENT;
404+
/* Per MSDN, this must be specified even if lpEnvironment is set to NULL,
405+
otherwise UNICODE characters in the parent environment are not copied
406+
correctly to the child. Omitting it may scramble %PATH% on non-English
407+
systems. */
408+
c_flags |= CREATE_UNICODE_ENVIRONMENT;
405409

406410
/* Add CREATE_DEFAULT_ERROR_MODE flag for non-Cygwin processes so they
407411
get the default error mode instead of inheriting the mode Cygwin

0 commit comments

Comments
 (0)