1Test::Stream::Plugin::UUTsFe8r(3C)ontributed Perl DocumeTnetsatt:i:oSntream::Plugin::UTF8(3)
2
3
4
6 Test::Stream::Plugin::UTF8 - Test::Stream plugin that enables utf8.
7
9 This distribution is deprecated in favor of Test2, Test2::Suite, and
10 Test2::Workflow.
11
12 See Test::Stream::Manual::ToTest2 for a conversion guide.
13
15 When used, this plugin will turn on the utf8 pragma, set STDERR and
16 STDOUT to use utf8, and update the Test::Stream output formatter to use
17 utf8.
18
20 use Test::Stream qw/... UTF8/;
21
22 This is the same as
23
24 use Test::Stream ...;
25 use utf8;
26 BEGIN {
27 set_encoding('utf8');
28 binmode(STDERR, ':utf8');
29 binmode(STDOUT, ':utf8');
30 }
31
33 This module sets output handles to have the ':utf8' output layer. Some
34 might prefer ':encoding(utf-8)' which is more strict about verifying
35 characters. There is a debate about wether or not encoding to utf8
36 from perl internals can ever fail, so it may not matter. This was also
37 chosen because the alternative causes threads to segfault, see perlbug
38 3193 <https://rt.perl.org/Public/Bug/Display.html?id=31923>.
39
41 The source code repository for Test::Stream can be found at
42 http://github.com/Test-More/Test-Stream/.
43
45 Chad Granum <exodist@cpan.org>
46
48 Chad Granum <exodist@cpan.org>
49
51 Copyright 2015 Chad Granum <exodist7@gmail.com>.
52
53 This program is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
56 See http://dev.perl.org/licenses/
57
58
59
60perl v5.36.0 2023-01-20 Test::Stream::Plugin::UTF8(3)