Test-Simple - How can I enable utf8 layer on diag output

Posted on Tue Jul 22 15:54:23 2008 by mjevans
How can I enable utf8 layer on diag output
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);

produces:

Wide character in print at /usr/share/perl/5.8/Test/Builder.pm line 1275. # unicode charatcers here I had to remove to get cpanforum to accept # No tests run!

How can I enable utf8 layer on diag output when using Test::More?

Martin
Direct Responses: 8383 | Write a response