File: t_utf8input

package info (click to toggle)
sdcv 0.5.0~beta2-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 428 kB
  • ctags: 320
  • sloc: cpp: 2,883; sh: 75; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# This test is dirty hack: if you want try it
# make sure that you have not small Russian dictionary, like mueller 7 GPL
# or replace человек by something else

PATH_TO_SDCV="$1"

unset SDCV_PAGER
export LANG=ru_RU.KOI8-R
IFS="
"
j=0
for i in `"$PATH_TO_SDCV" --utf8-input -n человек 2>&1`; do
	j=$(($j+1))
	if [ $j -ne 1 ]; then
		break;
	fi
done

if [ $j -eq 1 ]; then
	echo "$0: empty results of search: test failed" >&2
	exit 1
fi

exit 0