mje has asked for the wisdom of the Perl Monks concerning the following question:
produces:use strict; use warnings; use Test::More qw(no_plan); binmode STDOUT, ":utf8"; binmode STDERR, ":utf8"; my $data = "\x{263a}xxx" . chr(0x05d0) . "\x{20ac}"; diag($data);
According to Test::More it uses stdout/stderr by default. How can I enable utf8 layer on diag output when using Test::More?Wide character in print at /usr/share/perl/5.8/Test/Builder.pm line 12 +75. # unicode characters here # No tests run!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I enable utf8 layer on Test::More diag output
by moritz (Cardinal) on Jul 22, 2008 at 14:44 UTC | |
by mje (Curate) on Jul 22, 2008 at 15:03 UTC | |
by moritz (Cardinal) on Jul 22, 2008 at 15:10 UTC | |
by mje (Curate) on Jul 22, 2008 at 15:16 UTC | |
Re: How can I enable utf8 layer on Test::More diag output
by pc88mxer (Vicar) on Jul 22, 2008 at 14:48 UTC | |
by mje (Curate) on Jul 22, 2008 at 14:57 UTC | |
Re: How can I enable utf8 layer on Test::More diag output
by massa (Hermit) on Jul 22, 2008 at 16:55 UTC | |
by moritz (Cardinal) on Jul 22, 2008 at 17:23 UTC | |
by massa (Hermit) on Jul 22, 2008 at 22:09 UTC |