From 1a17b040c7bd327e6605ad837d33c7ec2377234e Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 2 May 2011 15:34:15 +0200 Subject: [PATCH] get test script to work on linux --- tests/koi8r/koi8r.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/koi8r/koi8r.sh b/tests/koi8r/koi8r.sh index 6bf9cf1a..04cb15a3 100755 --- a/tests/koi8r/koi8r.sh +++ b/tests/koi8r/koi8r.sh @@ -5,8 +5,16 @@ topdir=`dirname $0`/.. initvariables $0 # The question is utf-8. As recollq will use the locale to translate the cmd -# line, need an utf-8 locale -export LANG=uk_UA.UTF-8 +# 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