Re: encoding neutral unpack
[p5sagit/p5-mst-13.2.git] / t / uni / tr_7jis.t
index 292a01a..54df6a0 100644 (file)
@@ -1,13 +1,14 @@
 #
 # $Id$
 #
-# This script is written intentionally in EUC-JP
+# This script is written intentionally in ISO-2022-JP
+# requires Encode 1.83 or better to work
 # -- dankogai
 
 BEGIN {
     if ($ENV{'PERL_CORE'}){
         chdir 't';
-        unshift @INC, '../lib';
+        @INC = '../lib';
     }
     require Config; import Config;
     if ($Config{'extensions'} !~ /\bEncode\b/) {
@@ -22,13 +23,14 @@ BEGIN {
         print "1..0 # Skip: PerlIO required\n";
         exit 0;
     }
+    if ($ENV{PERL_CORE_MINITEST}) {
+        print "1..0 # Skip: no dynamic loading on miniperl, no Encode\n";
+        exit 0;
+    }
     $| = 1;
-    print "1..0 # does not work with iso-2022-jp yet\n";
-    exit 0;
 }
 
 use strict;
-#use Test::More qw(no_plan);
 use Test::More tests => 6;
 use Encode;
 use encoding 'iso-2022-jp';