The current code goes through a lot of machinations to know
1..n
at the beginning. Nowadays, one can simply calculate this as we go
along and print it out at the end. If the test fails in the middle, the
lack of a plan will be marked as a failure.
$have_setlocale = 0 if ($^O =~ /^uwin/);
my $last_locales = $have_setlocale ? &last_locales : &last_without_setlocale;
-my $last = $have_setlocale ? &last : &last_without_setlocale;
-
-print "1..$last\n";
-
sub LC_ALL ();
$a = 'abc %';
# Let us do some *real* locale work now,
# unless setlocale() is missing (i.e. minitest).
-exit unless $have_setlocale;
+unless ($have_setlocale) {
+ print "1..$test_num\n";
+ exit;
+}
# Find locales.
}
-sub last { 165 }
+print "1..$test_num\n";
# eof