summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-01-18 11:03:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-01-18 11:03:38 +0000
commitb598356e4838039cf3470177e58ccba9b7e54eae (patch)
treea5f7b13e5106b33d2f1342a29b955f5295e0c343
parenta666309de8c6debe88d22c6bee8eb7599e06ebb3 (diff)
downloadperl-b598356e4838039cf3470177e58ccba9b7e54eae.tar.gz
GNU libc locale system has LANGUAGE env var that partly
overrides even LC_ALL. p4raw-id: //depot/cfgperl@2642
-rwxr-xr-xt/lib/safe2.t1
-rwxr-xr-xt/op/groups.t1
-rwxr-xr-xt/op/mkdir.t1
3 files changed, 3 insertions, 0 deletions
diff --git a/t/lib/safe2.t b/t/lib/safe2.t
index 6afc117729..e0dcfdda1c 100755
--- a/t/lib/safe2.t
+++ b/t/lib/safe2.t
@@ -10,6 +10,7 @@ BEGIN {
}
# test 30 rather naughtily expects English error messages
$ENV{'LC_ALL'} = 'C';
+ $ENV{LANGUAGE} = 'C'; # GNU locale extension
}
# Tests Todo:
diff --git a/t/op/groups.t b/t/op/groups.t
index dc8385b853..5778795a0e 100755
--- a/t/op/groups.t
+++ b/t/op/groups.t
@@ -3,6 +3,7 @@
$ENV{PATH} ="/bin:/usr/bin:/usr/xpg4/bin:/usr/ucb" .
exists $ENV{PATH} ? ":$ENV{PATH}" : "";
$ENV{LC_ALL} = "C"; # so that external utilities speak English
+$ENV{LANGUAGE} = 'C'; # GNU locale extension
sub quit {
print "1..0\n";
diff --git a/t/op/mkdir.t b/t/op/mkdir.t
index acf16c14a4..fc91b6b6a2 100755
--- a/t/op/mkdir.t
+++ b/t/op/mkdir.t
@@ -8,6 +8,7 @@ $^O eq 'MSWin32' ? `del /s /q blurfl 2>&1` : `rm -rf blurfl`;
# tests 3 and 7 rather naughtily expect English error messages
$ENV{'LC_ALL'} = 'C';
+$ENV{LANGUAGE} = 'C'; # GNU locale extension
print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");