Package: translate Version: 0.6-4 Severity: normal Tags: patch The following patch fixes the logic which looks for global and local dictionaries.
It prints the error about the global dictionary not existing at the right time, and it prints an error when no dictionaries can be found at all rather than hanging because the grep waits for stdin. diff -urN translate-0.6~/translate translate-0.6/translate --- translate-0.6~/translate 2005-05-04 03:29:37.129447704 +0100 +++ translate-0.6/translate 2005-05-04 03:30:33.814830216 +0100 @@ -129,13 +129,15 @@ DIC="$GLOBDIC" fi else -echo "$GLOBDIC nicht richtig" + echo "`basename $0`: Global dictionary $GLOBDIC does not exist or is not readable!" if [ -r $LOCDIC ] then + echo "`basename $0`: Fallback to $LOCDIC" DIC=$LOCDIC - echo "`basename $0`: Global dictionary $GLOBDIC does not exist or is not readable!" -echo "`basename $0`: Fallback to $LOCDIC " - echo "" + else + echo "`basename $0`: Fallback to $LOCDIC is not posible." + echo "No dictionaries exist!" + exit 0 fi fi -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.10-1-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages translate depends on: ii trans-de-en 1.3-5 A German-English translation dicti -- no debconf information -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]