Parent: [85426a] (diff)

Download this file

koi8r.sh    24 lines (17 with data), 555 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
# The question is utf-8. As recollq will use the locale to translate the cmd
# line, need an utf-8 locale. This will fails on Linux (ubuntu lucid), the
# shell translates the argument to ?????????. As the locale is already utf-8
# in this case, just don't change it.
sys=`uname`
case $sys in
Linux);;
*)export LANG=uk_UA.UTF-8;;
esac
recollq 'внешнии' 2> $mystderr |
egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult