Whamcloud - gitweb
Set LC_ALL instead of LANG in the test suite config
authorTheodore Ts'o <tytso@mit.edu>
Sat, 30 Jun 2007 22:41:31 +0000 (18:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Jun 2007 23:52:11 +0000 (19:52 -0400)
LC_ALL is the "high priority" environment variable that overrides all
others, where as LANG is the lowest priorty environment variable.  If
LC_ALL is set, it doesn't matter whether LANG, LANGUAGE, LC_COLLATE,
LC_MESSAGES, and the all the rest are set.  This will assure that the
locale when running the test suites is the "C" locale.

Obviates Gentoo patch: e2fsprogs-1.38-tests-locale.patch

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/test_config

index 3c0fae0..f5ae0fe 100644 (file)
@@ -22,8 +22,8 @@ export LD_LIBRARY_PATH
 export DYLD_LIBRARY_PATH
 TZ=GMT
 export TZ
-LANG=C
-export LANG
+LC_ALL=C
+export LC_ALL
 E2FSCK_CONFIG=/dev/null
 export E2FSCK_CONFIG
 MKE2FS_CONFIG=$SRCDIR/../misc/mke2fs.conf