dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6314a2
)
Fixes for portability with libiconv.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 5 Oct 2002 07:34:29 +0000
(07:34 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 5 Oct 2002 07:34:29 +0000
(07:34 +0000)
t/anselconv.test
patch
|
blob
|
history
diff --git
a/t/anselconv.test
b/t/anselconv.test
index f0e3876159f683551bd4690849c59cf63549f7f0..c4437a6f56d6746dcca0c59abf78ac06d8902670 100755
(executable)
--- a/
t/anselconv.test
+++ b/
t/anselconv.test
@@
-19,13
+19,15
@@
then
export PATH=$ICONV_PATH:$PATH
fi
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
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
then
retval=1
fi