nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | # Simple check of a stateful encoding. |
||
3 | # Usage: check-stateful SRCDIR CHARSET |
||
4 | srcdir="$1" |
||
5 | charset="$2" |
||
6 | set -e |
||
7 | |||
8 | # charset, modified for use in filenames. |
||
9 | charsetf=`echo "$charset" | sed -e 's,:,-,g'` |
||
10 | |||
11 | ../src/iconv_no_i18n -f "$charset" -t UTF-8 < "${srcdir}"/"$charsetf"-snippet > tmp-snippet |
||
12 | cmp "${srcdir}"/"$charsetf"-snippet.UTF-8 tmp-snippet |
||
13 | ../src/iconv_no_i18n -f UTF-8 -t "$charset" < "${srcdir}"/"$charsetf"-snippet.UTF-8 > tmp-snippet |
||
14 | cmp "${srcdir}"/"$charsetf"-snippet tmp-snippet |
||
15 | rm -f tmp-snippet |
||
16 | exit 0 |