in reply to Re^2: How can I enable utf8 layer on Test::More diag output
in thread How can I enable utf8 layer on Test::More diag output
my $b = Test::More->builder; binmode STDOUT, $b->failure_output, ':utf8';
# both of the following are too late for Test::More # because it has already duplicated STDOUT, STDERR
That's not quite the cause. If it where, the following would work:
however, it doesn't work for me.BEGIN { binmode STDOUT, ':utf8'; binmode STDERR, ':utf8'; } use Test::More;
still for a general-purpose module I wouldn't assume that the terminal necessarily accepts UTF-8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I enable utf8 layer on Test::More diag output
by mje (Curate) on Jul 22, 2008 at 15:16 UTC |