Don't test locales if there is no setlocale()
authorChip Salzenberg <chip@perl.com>
Tue, 18 Feb 1997 16:22:49 +0000 (04:22 +1200)
committerChip Salzenberg <chip@atlantic.net>
Sat, 1 Mar 1997 06:40:49 +0000 (18:40 +1200)
t/pragma/locale.t

index 298e5ba..05891fa 100755 (executable)
@@ -4,7 +4,7 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
     require Config; import Config;
-    if ($Config{ccflags} =~ /\bD?NO_LOCALE\b/) {
+    if (!$Config{d_setlocale} || $Config{ccflags} =~ /\bD?NO_LOCALE\b/) {
        print "1..0\n";
        exit;
     }