Skip Menu |

This queue is for tickets about the Alvis-QueryFilter CPAN distribution.

Report information
The Basics
Id: 117597
Status: open
Priority: 0/
Queue: Alvis-QueryFilter

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.3
Fixed in: (no value)



Subject: The encoding pragma is no longer supported
With perl 5.25.x: # Failed test 'use Alvis::QueryFilter;' # at t/001_load.t line 8. # Tried to use 'Alvis::QueryFilter'. # Error: The encoding pragma is no longer supported at /tmpfs/.cpan-build-cpansand/2016090718/Alvis-QueryFilter-0.3-0/blib/lib/Alvis/Treetagger.pm line 12. # BEGIN failed--compilation aborted at /tmpfs/.cpan-build-cpansand/2016090718/Alvis-QueryFilter-0.3-0/blib/lib/Alvis/Treetagger.pm line 12. # Compilation failed in require at /tmpfs/.cpan-build-cpansand/2016090718/Alvis-QueryFilter-0.3-0/blib/lib/Alvis/QueryFilter.pm line 17. # BEGIN failed--compilation aborted at /tmpfs/.cpan-build-cpansand/2016090718/Alvis-QueryFilter-0.3-0/blib/lib/Alvis/QueryFilter.pm line 17. # Compilation failed in require at t/001_load.t line 8. # BEGIN failed--compilation aborted at t/001_load.t line 8.
On Wed Sep 07 16:00:48 2016, SREZIC wrote: Show quoted text
> With perl 5.25.x: > > # Failed test 'use Alvis::QueryFilter;' > # at t/001_load.t line 8. > # Tried to use 'Alvis::QueryFilter'. > # Error: The encoding pragma is no longer supported at > /tmpfs/.cpan-build-cpansand/2016090718/Alvis-QueryFilter-0.3- > 0/blib/lib/Alvis/Treetagger.pm line 12. > # BEGIN failed--compilation aborted at /tmpfs/.cpan-build- > cpansand/2016090718/Alvis-QueryFilter-0.3- > 0/blib/lib/Alvis/Treetagger.pm line 12. > # Compilation failed in require at /tmpfs/.cpan-build- > cpansand/2016090718/Alvis-QueryFilter-0.3- > 0/blib/lib/Alvis/QueryFilter.pm line 17. > # BEGIN failed--compilation aborted at /tmpfs/.cpan-build- > cpansand/2016090718/Alvis-QueryFilter-0.3- > 0/blib/lib/Alvis/QueryFilter.pm line 17. > # Compilation failed in require at t/001_load.t line 8. > # BEGIN failed--compilation aborted at t/001_load.t line 8.
What I wrote in https://rt.cpan.org/Ticket/Display.html?id=117594 applies here, too. Note that the ‘binmode STDERR, ":utf8";’ line is actually redundant with ‘use encoding 'utf8';’ or with the ‘use open ':std', ':utf8';’ that I recommend as part of the replacement for ‘use encoding’.