Confirmed repro on Cygwin's system perl, Perl v5.26.3, installing into a local::lib. Log portion extracted from cpanm run:
Installing /home/cxw/perl5/lib/perl5/x86_64-cygwin-threads-multi/.meta/XML-XPath
Engine-0.14/install.json
Installing /home/cxw/perl5/lib/perl5/x86_64-cygwin-threads-multi/.meta/XML-XPath
Engine-0.14/MYMETA.json
Building and testing XML-DOM-XPath-0.14
cp XPath.pm blib/lib/XML/DOM/XPath.pm
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t ................................. ok
t/pod.t ............................... ok
t/pod_coverage.t ...................... ok
t/test_bugs.t ......................... ok
The encoding pragma is no longer supported at t/test_non_ascii.t line 10.
BEGIN failed--compilation aborted at t/test_non_ascii.t line 10.
# Looks like your test exited with 2 before it could output anything.
t/test_non_ascii.t ....................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 10/10 subtests
The rest of the tests passed.
Applying SPROUT's fix worked for me.
Thanks!
On Fri Jul 15 01:08:59 2016, SPROUT wrote:
Show quoted text> On Sun Jun 05 13:34:44 2016, GREGOA wrote:
> > We have the following bug reported to the Debian package of
> > XML-DOM-XPath (
https://bugs.debian.org/826451):
> >
> > It doesn't seem to be a bug in the packaging, so you may want to take
> > a look. Thanks!
> >
> > ------8<-----------8<-----------8<-----------8<-----------8<-----
> >
> > Package: libxml-dom-xpath-perl
> > Version: 0.14-2
> > Severity: minor
> > User: debian-perl@lists.debian.org
> > Usertags: perl-5.24-transition
> >
> > Building this package triggers deprecation warnings with Perl 5.24
> > (currently in experimental):
> >
> > Use of the encoding pragma is deprecated at t/test_non_ascii.t line
> > 10.
>
> encoding.pm is no longer supported in perl 5.25.3. This simple patch
> fixes it. The test in question did not even need encoding.pm.