Hi Axel,

here is a fix of this bug.

--- /usr/bin/translate.orig     2023-11-04 19:25:55.944359987 +0100
+++ /usr/bin/translate  2023-11-04 19:30:27.089291611 +0100
@@ -94,14 +94,16 @@
 
 display ()
 {
+  local lsearch="$SEARCH"
+  [ $UTF8 -eq 1 ] || lsearch="$(echo "$SEARCH" | iconv -c -f UTF-8 -t 
$CHARSET)"
   if [ $COLOR = true ]
   then
     display_no_color "$@" | if
       [ $WHOLEWORD = false ]
     then
-      grep -Eihs --color=auto "$SEARCH"
+      grep -Eihs --color=auto "$lsearch"
     else
-      grep -Eihs --color=auto '\b'"$SEARCH"'\b'
+      grep -Eihs --color=auto '\b'"$lsearch"'\b'
     fi
   else
     display_no_color "$@"

Gruß
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <kl...@ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C

Attachment: signature.asc
Description: PGP signature

Reply via email to