On Dec 20, 2004, at 6:13 PM, David Wheeler wrote:
If there was a way to tell what mode was on STDERR before you duped it, you could just set it to the same. Something like:
my $mode = what_binmode(STDERR); my $fh = $builder->failure_output; binmode $fh, $mode;
Is there a module or function in Perl that can provide this information?
If not, another option is to add a binmode option to Test::Builder (and the modules that depend on it). So you could do something like this:
use Test::More tests => 6, binmode => ':utf8';
Thoughts?
Regards,
David