1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

tests: don't let the LANGUAGE envvar perturb tests

* tests/envvar-check (vars): Add LANGUAGE to the list of envvars
to unset.  At least in glibc (as an extension to POSIX), its value
actually trumps LC_ALL:

  $ LC_ALL=es_ES LANGUAGE=fr_FR.UTF-8 /bin/cat no-such
  /bin/cat: no-such: Aucun fichier ou dossier de ce type

but only when the default locale is not C:

  $ LC_ALL=C LANGUAGE=fr_FR.UTF-8 /bin/cat no-such
  /bin/cat: no-such: No such file or directory

Prompted by a report from Mads Kiilerich.
This commit is contained in:
Jim Meyering
2010-03-03 20:55:27 +01:00
parent 59e2e55d0f
commit 168a6b6a0f

View File

@@ -31,6 +31,7 @@ vars='
COLUMNS
DF_BLOCK_SIZE
DU_BLOCK_SIZE
LANGUAGE
LS_BLOCK_SIZE
LS_COLORS
POSIXLY_CORRECT