]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: don't let the LANGUAGE envvar perturb tests
authorJim Meyering <meyering@redhat.com>
Wed, 3 Mar 2010 19:55:27 +0000 (20:55 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 4 Mar 2010 09:46:11 +0000 (10:46 +0100)
commit168a6b6a0fde18e7e1445f189da3994edf3f2aa6
tree4601502eaa6c78e4fe2e38702d1f25db32d0869a
parent59e2e55d0f154a388adc9bac37d2b45f2ba971f8
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.
tests/envvar-check