14 messages in org.perl.perl-qaRe: Test::Builder versus Unicode
FromSent OnAttachments
OvidDec 20, 2004 4:50 pm 
Michael G SchwernDec 20, 2004 6:06 pm 
David WheelerDec 20, 2004 6:13 pm 
Michael G SchwernDec 20, 2004 6:18 pm 
David WheelerDec 20, 2004 6:20 pm 
chromaticDec 20, 2004 6:27 pm 
Michael G SchwernDec 20, 2004 6:30 pm 
David WheelerDec 20, 2004 6:37 pm 
Michael G SchwernDec 20, 2004 6:41 pm 
David WheelerDec 20, 2004 6:43 pm 
David WheelerDec 22, 2004 10:25 am 
Nicholas ClarkDec 22, 2004 10:45 am 
OvidDec 22, 2004 11:41 am 
Nicholas ClarkDec 22, 2004 11:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Test::Builder versus UnicodeActions...
From:Michael G Schwern (schw@pobox.com)
Date:Dec 20, 2004 6:18:51 pm
List:org.perl.perl-qa

On Mon, Dec 20, 2004 at 06:13:54PM -0800, David Wheeler wrote:

Test::Builder should do something like this internally, its not like anyone's going to drive binary data through a TB filehandle. The question is how does one do it without breaking older perls?

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?

Why does it matter what it was set to before? I'm always going to be shoving text out through this filehandle.