Various fixes for EBCDIC platforms.
Steve Peters [Mon, 23 Jul 2007 13:42:24 +0000 (13:42 +0000)]
p4raw-id: //depot/perl@31648

ext/Encode/t/mime_header_iso2022jp.t
t/io/layers.t

index bc26b9e..f1be864 100644 (file)
@@ -1,5 +1,11 @@
 
-use Test::More tests => 14;
+use Test::More;
+
+if( ord("A") == 193 ) {
+    plan skip_all => 'No Encode::MIME::Header::ISO_2022_JP on EBCDIC Platforms';
+} else {
+    plan tests => 14;
+}
 
 use strict;
 use Encode;
index c399b2a..abbc7ec 100644 (file)
@@ -131,11 +131,11 @@ SKIP: {
          [ qw(stdio crlf) ],
          "open :crlf");
 
-    binmode(F, ":encoding(sjis)"); # "sjis" will be canonized to "shiftjis"
+    binmode(F, ":encoding(cp1047)"); 
 
     check([ PerlIO::get_layers(F) ],
-         [ qw[stdio crlf encoding(shiftjis) utf8] ],
-         ":encoding(sjis)");
+         [ qw[stdio crlf encoding(cp1047) utf8] ],
+         ":encoding(cp1047)");
     
     binmode(F, ":pop");