From b598356e4838039cf3470177e58ccba9b7e54eae Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Mon, 18 Jan 1999 11:03:38 +0000 Subject: [PATCH] GNU libc locale system has LANGUAGE env var that partly overrides even LC_ALL. p4raw-id: //depot/cfgperl@2642 --- t/lib/safe2.t | 1 + t/op/groups.t | 1 + t/op/mkdir.t | 1 + 3 files changed, 3 insertions(+) diff --git a/t/lib/safe2.t b/t/lib/safe2.t index 6afc117..e0dcfdd 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 dc8385b..5778795 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 acf16c1..fc91b6b 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"); -- 1.8.3.1