From 95f5897e0e24ab550f6226fb8894221a3db85d0b Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 5 Oct 2002 07:34:29 +0000 Subject: [PATCH] Fixes for portability with libiconv. --- t/anselconv.test | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t/anselconv.test b/t/anselconv.test index f0e3876..c4437a6 100755 --- a/t/anselconv.test +++ b/t/anselconv.test @@ -19,13 +19,15 @@ then export PATH=$ICONV_PATH:$PATH fi -iconv --from-code=ANSEL --to-code=UTF-8 input/ansel.ged -o anselutf8.out -if ! diff input/anselutf8.ged anselutf8.out +echo "Testing conversion from ANSEL to UTF-8" >> testgedcom.out +iconv -f ANSEL -t UTF-8 input/ansel.ged > anselutf8.out +if ! diff input/anselutf8.ged anselutf8.out >> testgedcom.out then retval=1 else - iconv --to-code=ANSEL --from-code=UTF-8 input/anselutf8.ged -o ansel.out - if ! diff input/ansel.ged ansel.out + echo "Testing conversion from UTF-8 to ANSEL" >> testgedcom.out + iconv -f UTF-8 -t ANSEL input/anselutf8.ged > ansel.out + if ! diff input/ansel.ged ansel.out >> testgedcom.out then retval=1 fi -- 2.30.2