]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Export LC_ALL=C, to avoid failure when run in a UTF locale.
authorJim Meyering <jim@meyering.net>
Tue, 19 Nov 2002 14:08:45 +0000 (14:08 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 19 Nov 2002 14:08:45 +0000 (14:08 +0000)
Report and suggested fix by Bruno Haible.

tests/fmt/basic

index 66f79cc04feb45077b698a860b6bd8ae2751f3f5..7450a94ef5992de90b19dbd1c2be4d3614955d1b 100755 (executable)
@@ -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 'รง'),