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
bulk88 via RT
May 8, 2015 23:57
[perl #123998] blead's EUMM always fails tests on Win32 Perl on Win64
Message ID:
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 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

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About