New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#126041 preserve systemroot env var during env wipe for Win32 in magic.t #15494
Comments
From @bulk88Created by @bulk88See attached patch. Perl Info
|
From @bulk880001-126041-preserve-systemroot-env-var-during-env-wipe-f.patchFrom 4901670ce2bde772982df6d10f047704dd22fb28 Mon Sep 17 00:00:00 2001
From: Daniel Dragan <bulk88@hotmail.com>
Date: Thu, 4 Aug 2016 00:37:46 -0500
Subject: [PATCH] #126041 preserve systemroot env var during env wipe for
Win32 in magic.t
This fixes a test fail with VC 2005 on WinXP in magic.t. See perl #126041
for an example of the failure. Systemroot env var is required on WinXP to
load SXS tracked DLLs, VC 2005 and 2008's MS libc's are SXS tracked
(before and after are not), so once %ENV is wipe and systemroot is deleted
the require Win32; cant load the XS DLL because the XS DLL is linked
against the SXS tracked libc specific to 2005/2008.
---
t/op/magic.t | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/t/op/magic.t b/t/op/magic.t
index ad90749..0881876 100644
--- a/t/op/magic.t
+++ b/t/op/magic.t
@@ -718,10 +718,12 @@ SKIP: {
if $ENV{PERL_VALGRIND} || $Is_VMS;
$PATH = $ENV{PATH};
+ $SYSTEMROOT = $ENV{SYSTEMROOT} if exists $ENV{SYSTEMROOT}; # win32
$PDL = $ENV{PERL_DESTRUCT_LEVEL} || 0;
$ENV{foo} = "bar";
%ENV = ();
$ENV{PATH} = $PATH;
+ $ENV{SYSTEMROOT} = $SYSTEMROOT if defined $SYSTEMROOT;
$ENV{PERL_DESTRUCT_LEVEL} = $PDL || 0;
if ($Is_MSWin32) {
is `set foo 2>NUL`, "";
--
1.7.9.msysgit.0
|
From @jkeenanDoes the "126041" in the Subject indicate that this is the same bug as https://rt-archive.perl.org/perl5/Ticket/Display.html?id=126041 ? If so, then we should merge the two tickets. If not, then we should omit that string from the Subject line to avoid confusion. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Wed Aug 03 22:47:56 2016, bulk88 wrote:
Thank you. Applied as 15dd003. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#128837 (status was 'resolved')
Searchable as RT128837$
The text was updated successfully, but these errors were encountered: