Win32: Unicode environment (wrapped, outgoing)kb/unicode-v9-wrapped
commit7d12dcaae439863aa905ac23c37b48b321e7ea49
authorKarsten Blees <blees@dcon.de>
Wed, 2 Mar 2011 02:27:55 +0000 (2 03:27 +0100)
committerKarsten Blees <blees@dcon.de>
Mon, 23 May 2011 10:42:08 +0000 (23 12:42 +0200)
tree1031d24eda8427da51d1b69ec8456686192cdca7
parentea620e77dea3014800c9b53da73663dea3ea014a
Win32: Unicode environment (wrapped, outgoing)

Pass Unicode environment to child processes.

MSVCRT's char **environ is encoded in the default Windows "ANSI" encoding
and thus cannot be used, change to _wenviron.

As a result, the execve/spawnve functions as well as make_augmented_environ
and friends need to use wchar_t** instead of char** for the environment.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c
compat/mingw.h
run-command.c