Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion encoding.pm
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Note that C<STDERR> WILL NOT be changed, regardless.
Also note that non-STD file handles remain unaffected. Use C<use
open> or C<binmode> to change the layers of those.

=item C<use encoding I<ENCNAME> Filter=E<gt>1;>
=item C<use encoding I<ENCNAME>, Filter=E<gt>1;>

This operates as above, but the C<Filter> argument with a non-zero
value causes the entire script, and not just literals, to be translated from
Expand Down
2 changes: 1 addition & 1 deletion lib/Encode/Encoding.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use Carp ();
use Encode ();
use Encode::MIME::Name;

sub DEBUG { 0 }
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};

sub Define {
my $obj = shift;
Expand Down
6 changes: 1 addition & 5 deletions t/guess.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ use Encode qw(decode encode find_encoding _utf8_off);

#use Test::More qw(no_plan);
use Test::More tests => 32;
use_ok("Encode::Guess");
{
no warnings;
$Encode::Guess::DEBUG = shift || 0;
}
BEGIN { use_ok("Encode::Guess") }

my $ascii = join('' => map {chr($_)}(0x21..0x7e));
my $latin1 = join('' => map {chr($_)}(0xa1..0xfe));
Expand Down