Craig A. Berry [Sat, 8 Sep 2001 19:02:16 +0000 (14:02 -0500)]
Message-Id: <5.1.0.14.0.
20010908185936.01aadcc0@mail.mac.com>
p4raw-id: //depot/perl@11955
untie *STDOUT;
open(STDOUT, ">&REAL_STDOUT");
-is( $fake_out, "<!-- warning: There is a problem at $0 line 95. -->\n",
+my $fname = $0;
+$fname =~ tr/<>-/\253\273\255/; # _warn does this so we have to also
+is( $fake_out, "<!-- warning: There is a problem at $fname line 95. -->\n",
'warningsToBrowser() on' );
is($CGI::Carp::EMIT_WARNINGS, 1, "Warnings turned off");