repo.or.cz
/
libiconv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Regenerated. TCVN can now store the accents.
[libiconv.git]
/
tests
/
check-translit
blob
48c39e050e5df293655c96dd7cc41eb781cc9a87
1
#!/bin/sh
2
# Simple check of transliteration facilities.
3
# Usage: check-translit SRCDIR FILE FROMCODE TOCODE
4
srcdir
=
"
$1
"
5
file
=
"
$2
"
6
fromcode
=
"
$3
"
7
tocode
=
"
$4
"
8
set -e
9
..
/
src
/
iconv
-f
"
$fromcode
"
-t
"
$tocode
"
//
TRANSLIT
<
"
${srcdir}
"
/
"
$file
"
.
"
$fromcode
"
>
tmp
10
cmp
"
${srcdir}
"
/
"
$file
"
.
"
$tocode
"
tmp
11
rm
-f
tmp
12
exit
0