diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
commit | 1cd3ef0dd6c2236d0b329879bacd9360d01c88a1 (patch) | |
tree | a60016b5dd48fbf681ebfb43a6ca0d7e20a391d8 /test/pbmtext-iso88591.test | |
parent | cbbf595776cee6b8d8a24becf49ee6468eeba712 (diff) | |
download | netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.gz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.xz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.zip |
Promote Development to Advaanced - Release 10.91
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3877 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pbmtext-iso88591.test')
-rwxr-xr-x | test/pbmtext-iso88591.test | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/test/pbmtext-iso88591.test b/test/pbmtext-iso88591.test index 96b286ac..69e6ec90 100755 --- a/test/pbmtext-iso88591.test +++ b/test/pbmtext-iso88591.test @@ -2,20 +2,13 @@ # This script tests: pbmtext # Also requires: -# This test requires the iconv command and an iso-8859-1 locale -# Skip this test if they are not available +# This test requires an iso-8859-1 locale +# Skip this test if it is not available LANG=C LC_ALL=C export LANG LC_ALL -iconv /dev/null -if [ $? -ne 0 ] - then echo "iconv command not available." 1>&2 - echo "Skipping." 1>&2 - exit 80; -fi - tmpdir=${tmpdir:-/tmp} iso88591_locale_list=${tmpdir}/iso88591_locale_list @@ -51,16 +44,15 @@ locale_for_test=${locale_to_test}; # Two rows -# Should print 3806607098 5110 twice - +# Should print 2066913605 5110 twice echo "Test 1" awk 'BEGIN { for (i=32; i<=126;++i) printf("%c",i); print ""; \ - for (i=160;i<=255;++i) printf("%c",i); }' | \ + for (i=161;i<=255;++i) printf("%c",i); }' | \ pbmtext -builtin bdf | cksum awk 'BEGIN { for (i=32; i<=126;++i) printf("%c",i); print ""; \ - for (i=160;i<=255;++i) printf("%c",i); }' | \ + for (i=161;i<=255;++i) printf("%c",i); }' | \ LC_ALL=${locale_for_test} pbmtext -builtin bdf -wchar | cksum |