in reply to How can I enable utf8 layer on Test::More diag output

Try (untested):
use strict; use warnings; use open qw(:std :utf8); use Test::More qw(no_plan);
it /should/ work....
[]s, HTH, Massa (κς,πμ,πλ)

Replies are listed 'Best First'.
Re^2: How can I enable utf8 layer on Test::More diag output
by moritz (Cardinal) on Jul 22, 2008 at 17:23 UTC
    it /should/ work....
    But it doesn't.
      Yes, and I'm still puzzled. use open should affect the way Test/More.pm opens its todo_output and failure_output filehandles (*Test::More::TESTOUT and *Test::More::TESTERR, respectively); but somehow, open(TESTOUT, ">&STDOUT") does not respect the default stack in ${^OPEN} nor copies the stack on the STDOUT handle. A mistery to me. Anyway, the _real_ solution was already found:
      binmode(($_->todo ? $_->todo_output : $_->failure_output), ':utf8') for Test::More->builder
      (this one I tested !!) :-)
      []s, HTH, Massa (κς,πμ,πλ)