Any ideas on this? If you can point me to the code how to avoid using putenv on MinGW, i.e., avoid using some module on some platform, I'd be glad to whip up a patch?
Greetings, Jan Jan Nieuwenhuizen schreef op vr 04-02-2011 om 22:27 [+0100]: > Hi, > > When gnulib's putenv module is included, it will be used on mingw. > Variables put in the environment using gnulib's putenv do not make > it past exec. > > You can easily verify this by applying the patch below and creating > a test for unsetenv and remove-file and running test-unsetenv.exe > > I'm also attaching mingw-putenv.c which makes it easy to see that > the putenv that mingw provides does not suffer from this problem. > > I haven't investigated whether it's environment or putenv which is > broken. > > Greetings, > Jan. >