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

it /should/ work....
But it doesn't.
  • Comment on Re^2: How can I enable utf8 layer on Test::More diag output

Replies are listed 'Best First'.
Re^3: How can I enable utf8 layer on Test::More diag output
by massa (Hermit) on Jul 22, 2008 at 22:09 UTC
    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 (κς,πμ,πλ)