in reply to How can I enable utf8 layer on Test::More diag output
Instead of calling diag($data) you probably have to do this:
Of course you can wrap it in a subroutine.my $tb = Test::More->builder; $tb->failure_output(\*STDOUT); $tb->diag($data);
Update: Alternatively, instead of redefining failure_output, it might be better to just call binmode on it:
my $tb = Test::More->builder; binmode $tb->failure_output, ":utf8"; $tb->diag(...);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How can I enable utf8 layer on Test::More diag output
by mje (Curate) on Jul 22, 2008 at 14:57 UTC |
In Section
Seekers of Perl Wisdom