comparison tests/test-rdf-writer/test-rdf-writer.sh @ 198:68daabfc4ccc

Use iconv instead of uconv (present on OS/X)
author Chris Cannam
date Tue, 01 Sep 2015 17:29:02 +0100
parents 4ef452f5fefc
children
comparison
equal deleted inserted replaced
197:3b7ec45abd1c 198:68daabfc4ccc
64 done 64 done
65 65
66 # Check the output encoding -- should be valid UTF-8 always 66 # Check the output encoding -- should be valid UTF-8 always
67 67
68 for code in ucs-2 iso-8859-1; do 68 for code in ucs-2 iso-8859-1; do
69 $r -t $transformdir/onsets.n3 -w rdf --rdf-stdout $audiopath/id3v2-$code.mp3 2>/dev/null | uconv --from-code utf-8 --to-code utf-8 --from-callback stop >/dev/null || 69 $r -t $transformdir/onsets.n3 -w rdf --rdf-stdout $audiopath/id3v2-$code.mp3 2>/dev/null | iconv --from-code=utf-8 --to-code=utf-8 >/dev/null ||
70 fail "RDF/Turtle output from $code input is not valid utf-8 according to uconv" 70 fail "RDF/Turtle output from $code input is not valid utf-8 according to iconv"
71 done 71 done
72 72
73 exit 0 73 exit 0