Re-merge Encode 1.92.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 22 Apr 2003 10:48:47 +0000 (10:48 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 22 Apr 2003 10:48:47 +0000 (10:48 +0000)
p4raw-id: //depot/perl@19304

ext/Encode/Makefile.PL
ext/Encode/t/enc_module.t

index 6e4e40c..2e74fe4 100644 (file)
@@ -3,7 +3,7 @@ use ExtUtils::MakeMaker;
 
 # Just for sure :)
 unless($ENV{PERL_CORE}) {
-    $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
+    $ENV{PERL_CORE} = 1 if ($^X =~ m{\bminiperl[^/\\\]>:]*$}o);
 }
 
 my %tables = 
index 0910029..ac9bf3c 100644 (file)
@@ -38,7 +38,6 @@ open STDOUT, ">", $file1 or die "$file1:$!";
 print $obj->str, "\n";
 $obj->set("¥Æ¥¹¥Èʸ»úÎó");
 print $obj->str, "\n";
-close STDOUT;
 
 my $cmp = compare_text($file0, $file1);
 is($cmp, 0, "encoding vs. STDOUT");
@@ -52,6 +51,7 @@ while(<STDIN>){
     is ($cmp[$i++], $_, "encoding vs. STDIN - $i");
 }
 
+close STDOUT;
 unlink $file1 unless $cmp;
 __END__