Skip to content

Commit aeec374

Browse files
authored
Merge pull request #1014 from ilmari/doc-utf-8
Use the proper name for UTF-8 in documentation
2 parents b486145 + f47eb72 commit aeec374

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Test/More.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,9 +1887,9 @@ There is a full version history in the Changes file, and the Test::More versions
18871887
18881888
=over 4
18891889
1890-
=item utf8 / "Wide character in print"
1890+
=item UTF-8 / "Wide character in print"
18911891
1892-
If you use utf8 or other non-ASCII characters with Test::More you
1892+
If you use UTF-8 or other non-ASCII characters with Test::More you
18931893
might get a "Wide character in print" warning. Using
18941894
C<< binmode STDOUT, ":utf8" >> will not fix it.
18951895
L<Test::Builder> (which powers
@@ -1900,16 +1900,16 @@ Test::More.
19001900
One work around is to apply encodings to STDOUT and STDERR as early
19011901
as possible and before Test::More (or any other Test module) loads.
19021902
1903-
use open ':std', ':encoding(utf8)';
1903+
use open ':std', ':encoding(UTF-8)';
19041904
use Test::More;
19051905
19061906
A more direct work around is to change the filehandles used by
19071907
L<Test::Builder>.
19081908
19091909
my $builder = Test::More->builder;
1910-
binmode $builder->output, ":encoding(utf8)";
1911-
binmode $builder->failure_output, ":encoding(utf8)";
1912-
binmode $builder->todo_output, ":encoding(utf8)";
1910+
binmode $builder->output, ":encoding(UTF-8)";
1911+
binmode $builder->failure_output, ":encoding(UTF-8)";
1912+
binmode $builder->todo_output, ":encoding(UTF-8)";
19131913
19141914
19151915
=item Overloaded objects

0 commit comments

Comments
 (0)