From fe4a495ca2ab6f91d8473c870ebd7ac569b910ee Mon Sep 17 00:00:00 2001 From: clanmills Date: Tue, 13 Oct 2020 15:11:13 +0100 Subject: [PATCH] Fixing variable LANG --- test/nls-test.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/nls-test.sh b/test/nls-test.sh index 220045b1..7948d30c 100755 --- a/test/nls-test.sh +++ b/test/nls-test.sh @@ -4,8 +4,9 @@ source ./functions.source ( cd "$testdir" + nls=$(runTest exiv2 -vVg nls|tail -1) - platform=$(runTest exiv2 -vVg platform|tail -1) + platform=$(${bin}exiv2${exe} -vVg platform|tail -1) if [ "$nls" != "enable_nls=1" ]; then echo "exiv2 not bulid with nls" exit 0 @@ -34,9 +35,11 @@ source ./functions.source fi ## # test a couple of languages - for l in fr_FR es_ES; do - LC_ALL=$l LANG=$l ${bin}exiv2 - done + for l in fr_FR es_ES; do ( + export LC_ALL=$l + export $LANG=$l + runTest exiv2 + ) done ) 3>&1 > $results 2>&1