Don't test locales if there is no setlocale()
Chip Salzenberg [Tue, 18 Feb 1997 16:22:49 +0000 (04:22 +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;
     }