This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
getenv() after my_setenv() gets old entry on Win32
authorGurusamy Sarathy <gsar@engin.umich.edu>
Sun, 22 Jun 1997 05:34:00 +0000 (17:34 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 6 Aug 1997 12:00:00 +0000 (00:00 +1200)
commit0551aaa8f66eb12adb34e496ae8608b54066193c
tree14a80d692a941788a66bc4c376f9fa97fec08c1d
parent6890e559d7ce8a57fe2b6b18ef51d300ce98843f
getenv() after my_setenv() gets old entry on Win32

Perl uses the environment to communicate the -d:DProf
switch to itself.

Since the win32 code sets the operating system's env block
directly when my_setenv() is called, calls to the RTL's
getenv() won't see the changed environment, so the -d:Foo
option is not honored.

The attached patch fixes the problem by supplying our own
getenv() equivalent.

p5p-msgid: 199706231700.NAA23400@aatma.engin.umich.edu
win32/win32.c
win32/win32.h