Skip to content

Commit

Permalink
Merge pull request #1014 from ilmari/doc-utf-8
Browse files Browse the repository at this point in the history
Use the proper name for UTF-8 in documentation
  • Loading branch information
exodist authored Dec 19, 2024
2 parents b486145 + f47eb72 commit aeec374
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Test/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1887,9 +1887,9 @@ There is a full version history in the Changes file, and the Test::More versions
=over 4
=item utf8 / "Wide character in print"
=item UTF-8 / "Wide character in print"
If you use utf8 or other non-ASCII characters with Test::More you
If you use UTF-8 or other non-ASCII characters with Test::More you
might get a "Wide character in print" warning. Using
C<< binmode STDOUT, ":utf8" >> will not fix it.
L<Test::Builder> (which powers
Expand All @@ -1900,16 +1900,16 @@ Test::More.
One work around is to apply encodings to STDOUT and STDERR as early
as possible and before Test::More (or any other Test module) loads.
use open ':std', ':encoding(utf8)';
use open ':std', ':encoding(UTF-8)';
use Test::More;
A more direct work around is to change the filehandles used by
L<Test::Builder>.
my $builder = Test::More->builder;
binmode $builder->output, ":encoding(utf8)";
binmode $builder->failure_output, ":encoding(utf8)";
binmode $builder->todo_output, ":encoding(utf8)";
binmode $builder->output, ":encoding(UTF-8)";
binmode $builder->failure_output, ":encoding(UTF-8)";
binmode $builder->todo_output, ":encoding(UTF-8)";
=item Overloaded objects
Expand Down

0 comments on commit aeec374

Please sign in to comment.