bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib silently breaks putenv on mingw


From: Jan Nieuwenhuizen
Subject: gnulib silently breaks putenv on mingw
Date: Fri, 04 Feb 2011 22:27:36 +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.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ®  http://AvatarAcademy.nl  

Attachment: test-unsetenv.patch
Description: Text Data

Attachment: mingw-putenv.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]