* Anibal Monsalve Salazar <[EMAIL PROTECTED]> [2005-06-13 20:12]:
> Does this have anything to do with the patch you posted to #219199?
Here's a patch. You also still have to change LANG to LANGUAGE in
/etc/translate.conf
--- /usr/bin/translate 2005-05-15 11:01:14.000000000 +0100
+++ translate 2005-06-13 19:35:56.928941824 +0100
@@ -81,11 +81,7 @@
if [ "$2" = "-n" ]; then
OPT="-n"
fi
- if [ $UTF8 ]; then
- echo $OPT "$1" | iconv -f ISO-8859-1 -t UTF-8
- else
- echo $OPT "$1"
- fi
+ echo $OPT "$1" | iconv -f UTF-8
}
# If there is no $LOCDIR we should create one
@@ -153,12 +149,8 @@
fi
fi
-if locale 2>&1 | grep -E -q "UTF-8?$"; then
- UTF8=1
-fi
SEARCH=$*
-[ $UTF8 ] && SEARCH=$(echo "$SEARCH" | iconv -f UTF-8 -t ISO-8859-1)
-LANG=en_US
+SEARCH=$(echo "$SEARCH" | iconv -t UTF-8)
# now get the real work done
if [ 1 ] ; then
if
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]