develooper Front page | perl.perl5.porters | Postings from May 2015

[perl #123998] blead's EUMM always fails tests on Win32 Perl on Win64

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
May 8, 2015 23:57
Subject:
[perl #123998] blead's EUMM always fails tests on Win32 Perl on Win64
Message ID:
rt-4.0.18-24710-1431129436-385.123998-15-0@perl.org
On Wed May 06 06:24:44 2015, davem wrote:
> If I am reading the code correctly, the "fix" in 7.05_08 is that
> code page determination using chcp is deferred until until it is
> needed
> rather than unconditionally doing at startup time; so
> 
> perl -MExtUtils::MakeMaker -e "0"
> 
> no longer pollutes STDERR, but something that needs to know the code
> page
> still will.
> 
> Anyway, as a quick fix for 5.22, could we simply stop MakeMaker
> polluting
> STDERR; e.g. in Locale.pm change
> 
> qx(chcp)
> 
> to
>     qx("chcp 2<&1")
> 
> or whatever similar win32-specific thing works?

I did that in the attached patch. t/porting/utils.t also needs git in %PATH% to fail on win32, since if there is no working git, the whole file is skipped, and I dont always keep git in my %PATH% on win32.

I dont personally like the idea of sending the error to null and I dont like the patch I wrote, since whatever info ("active code page") is collected will be wrong with no warning for EUMM users. IDK enough to say if having the wrong infp makes a difference in the end or not. 


-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=123998

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About