Skip to content

Commit

Permalink
Try without line ending
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Feb 17, 2024
1 parent 0f1481b commit 1ba88cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/WWW/PGXN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ sub spec {
my $res = $self->_fetch(
$self->_url_for('spec' => { format => $format })
) or return;
utf8::decode $res->{content} or croak "utf8::decode failed";
utf8::decode $res->{content};
return $res->{content};
}

Expand Down
4 changes: 2 additions & 2 deletions t/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ is $pgxn->html_doc_path_for('pair', '0.1.2', 'doc/foo'),
##############################################################################
# Test spec fetching.
ok my $spec = $pgxn->spec, 'Get spec';
like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m,
like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification}m,
'It should look like the text file';
use Data::Dump; ddx $spec; ddx qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m;
# use Data::Dump; ddx $spec; ddx qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m;
# ok $spec = $pgxn->spec('txt'), 'Get text spec';
# like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m,
# 'It should look like the text file';
Expand Down

0 comments on commit 1ba88cc

Please sign in to comment.