X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Fsrc%2Ftest_prologue.sh;h=5a5f330bc8a73badcfc4fe54ab4df25b03f64a60;hb=c637187356219bc074232a0f4b57481c472b1818;hp=dfbdb4daabf5e1401d582b8dd505590c420ba03e;hpb=05f0c0416fcaa3ef33a108c1d6660773ccb1d350;p=gedcom-parse.git diff --git a/t/src/test_prologue.sh b/t/src/test_prologue.sh index dfbdb4d..5a5f330 100644 --- a/t/src/test_prologue.sh +++ b/t/src/test_prologue.sh @@ -13,7 +13,7 @@ do shift done -test_name=$1 +test_name=`echo $1 | sed "s:.*/::" | sed "s:.test::"` shift expected_result=$1 shift @@ -25,6 +25,10 @@ if [ -z "$expected_result" ] then expected_result=0 fi +if [ -z "$GEDCOM_LANG" ] +then + GEDCOM_LANG=C +fi # For use outside Makefile if [ -z "$srcdir" ] @@ -41,8 +45,8 @@ options="$options -o $outfile" GCONV_PATH=.:$GCONV_PATH export GCONV_PATH -LANG=C -export LANG +LC_ALL=$GEDCOM_LANG +export LC_ALL ln -s $srcdir/../data/gedcom.enc . ln -s $builddir/../data/new.ged . ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .