summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2011-01-09 22:05:09 +0000
committerkeramida <keramida@FreeBSD.org>2011-01-09 22:05:09 +0000
commit4813d862787d48502e1389794adc933b8ab4cbda (patch)
treee6e868d0a6050b8d95403f93db911877be83904e
parent0cf1767efcfa9867d14965198bcb4700ac15c897 (diff)
downloadFreeBSD-src-4813d862787d48502e1389794adc933b8ab4cbda.zip
FreeBSD-src-4813d862787d48502e1389794adc933b8ab4cbda.tar.gz
regression/date: unset all LC_xxx vars and set LANG/LC_ALL
When running with a custom locale setup, it's easy to confuse the date regression tests and cause them to fail, e.g. when LANG='C' but LC_ALL='el_GR.UTF-8'. Set LC_ALL to 'C', which overrides all other LC_xxx options, to avoid this sort of problem. Reviewed by: uqs, edwin
-rw-r--r--tools/regression/bin/date/regress.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/bin/date/regress.sh b/tools/regression/bin/date/regress.sh
index 9f4b68b..981bdd0 100644
--- a/tools/regression/bin/date/regress.sh
+++ b/tools/regression/bin/date/regress.sh
@@ -19,7 +19,7 @@
TEST1=3222243 # 1970-02-07 07:04:03
TEST2=1005600000 # 2001-11-12 21:11:12
-export LANG=C
+export LC_ALL=C
export TZ=UTC
count=0
OpenPOWER on IntegriCloud