summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-19 14:08:45 +0000
committerJim Meyering <jim@meyering.net>2002-11-19 14:08:45 +0000
commit39926c6c6eada4013d46ae30175dfaea25a81688 (patch)
tree55eb61ead76bf118c9e8ad1d6f0206462e5e38fd /tests
parent32872d2edfb62614a0ab5efe13f3748b0b30ee4d (diff)
downloadcoreutils-39926c6c6eada4013d46ae30175dfaea25a81688.tar.xz
Export LC_ALL=C, to avoid failure when run in a UTF locale.
Report and suggested fix by Bruno Haible.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fmt/basic9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/fmt/basic b/tests/fmt/basic
index 66f79cc04..7450a94ef 100755
--- a/tests/fmt/basic
+++ b/tests/fmt/basic
@@ -11,15 +11,18 @@ case "$PERL" in
;;
esac
+# Export this to avoid hassles when run in a UTF-8 locale,
+# since we use 8-bit characters below, and those values are
+# interpolated into strings (to perform substitution) in Fetish.pm.
+LC_ALL=C
+export LC_ALL
+
exec $PERL -w -I$srcdir/.. -MFetish -- - <<\EOF
require 5.003;
use strict;
(my $program_name = $0) =~ s|.*/||;
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
my @Tests =
(
['8-bit-pfx', qw (-p 'ç'),