1Test2::Plugin::UTF8(3)User Contributed Perl DocumentationTest2::Plugin::UTF8(3)
2
3
4

NAME

6       Test2::Plugin::UTF8 - Test2 plugin to test with utf8.
7

DESCRIPTION

9       When used, this plugin will make tests work with utf8. This includes
10       turning on the utf8 pragma and updating the Test2 output formatter to
11       use utf8.
12

SYNOPSIS

14           use Test2::Plugin::UTF8;
15
16       This is similar to:
17
18           use utf8;
19           BEGIN {
20               require Test2::Tools::Encoding;
21               Test2::Tools::Encoding::set_encoding('utf8');
22           }
23

NOTES

25       This module currently sets output handles to have the ':utf8' output
26       layer. Some might prefer ':encoding(utf-8)' which is more strict about
27       verifying characters.  There is a debate about weather or not encoding
28       to utf8 from perl internals can ever fail, so it may not matter. This
29       was also chosen because the alternative causes threads to segfault, see
30       perlbug 31923 <https://rt.perl.org/Public/Bug/Display.html?id=31923>.
31

SOURCE

33       The source code repository for Test2-Suite can be found at
34       https://github.com/Test-More/Test2-Suite/.
35

MAINTAINERS

37       Chad Granum <exodist@cpan.org>
38

AUTHORS

40       Chad Granum <exodist@cpan.org>
41
43       Copyright 2018 Chad Granum <exodist@cpan.org>.
44
45       This program is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48       See http://dev.perl.org/licenses/
49
50
51
52perl v5.28.2                      2019-05-18            Test2::Plugin::UTF8(3)
Impressum