From: Peter Rabbitson Date: Fri, 9 Apr 2010 12:16:23 +0000 (+0000) Subject: Use a sloppy but recommended fix for Test warnings X-Git-Tag: v0.08121~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fed2c7d79d8112c3a5e3f73fa1c0f99d8588b08d;p=dbsrgits%2FDBIx-Class.git Use a sloppy but recommended fix for Test warnings --- diff --git a/t/85utf8.t b/t/85utf8.t index fd2c0e9..0569ffd 100644 --- a/t/85utf8.t +++ b/t/85utf8.t @@ -91,9 +91,8 @@ Class::C3->reinitialize(); } } -# there's some weird bug in Test::Builder that spews out wide-character warnings -# without any print taking place -$SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /Wide character in print/ }; +# as per http://search.cpan.org/dist/Test-Simple/lib/Test/More.pm#utf8 +binmode (Test::More->builder->$_, ':utf8') for qw/output failure_output todo_output/; my $bytestream_title = my $utf8_title = "weird \x{466} stuff"; utf8::encode($bytestream_title);