File: t_utf8input

package info (click to toggle)
sdcv 0.4.2-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,380 kB
  • ctags: 379
  • sloc: sh: 3,972; cpp: 2,926; ansic: 833; makefile: 60; sed: 16
file content (23 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (4)
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
# 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

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

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

exit 0