It seems the binmode() is needed with UTF-8 locales enabled.
Jarkko Hietaniemi [Thu, 16 Jan 2003 20:19:36 +0000 (20:19 +0000)]
p4raw-id: //depot/perl@18495

ext/Encode/t/CJKT.t

index 5421f23..72e5d3c 100644 (file)
@@ -57,7 +57,7 @@ for my $charset (sort keys %Charset){
 
 
     open $src, "<$src_enc" or die "$src_enc : $!";
-    # binmode($src); # not needed! 
+    binmode($src); # needed if UTF-8 locales enabled!
 
     $txt = join('',<$src>);
     close($src);