Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: PerlIO::via::xz

by choroba (Cardinal)
on Oct 03, 2020 at 19:49 UTC ( [id://11122518]=note: print w/replies, xml ) Need Help??


in reply to PerlIO::via::xz

Good idea. I learned about xz several weeks ago at work.

I tried to fork your repo on GitHub and ran prove -vl. There were no test failures. Even running

perl -Ilib sandbox/xz-undef.pl
doesn't show any problems.

What do you mean by "it fails"?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: PerlIO::via::xz
by Tux (Canon) on Oct 04, 2020 at 07:35 UTC

    Change $/ = "\xff\xfe\xff\xfe" x 16 to undef in t/10-xz.t. (trice).

    sandbox/xz-undef.pl shows it is not the underlying IO modules to blame.

    $ perl -Mblib -MPerlIO::via::xz -wE'open my $fh, "<:via(xz)", "files/p +lain.xz";print scalar<$fh>' Lorem ipsum dolor sit amet, consectetur adipiscing elit, $ perl -Mblib -MPerlIO::via::xz -wE'open my $fh, "<:via(xz)", "files/p +lain.xz";$/=undef;print scalar<$fh>'

    or replace t/10-xz.t with this:


    Enjoy, Have FUN! H.Merijn
      I tried to debug it, the reading happens at IO::Uncompress::Base line 73. $$out is not populated. I'm at my wits' end.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found