Description: fix test to work with Encode >= 2.54
Origin: CPAN RT#93438
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=93438
Bug-Debian: https://bugs.debian.org/753042
Author: HMBRAND [...] cpan.org
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2014-06-29

--- a/t/tests/03_file.t
+++ b/t/tests/03_file.t
@@ -105,7 +105,8 @@
 while( 1 ) {
     my $row = $csv->getline( $fh );
     $csv->eof and last;
-    is( $row->[0], Encode::decode_utf8( $checker->getline( $fh2 )->[1] ) );
+    my $data = $checker->getline( $fh2 )->[1];
+    is( $row->[0], utf8::is_utf8 ($data) ? $data : Encode::decode_utf8( $data ) );
 }
 
 close($fh);
