/usr/share/gcin/script/utf8-edit is in gcin-data 2.7.6.1+dfsg-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/bash
PATH=$PATH:/opt/gnome/bin:/usr/local/bin
for i in madedit gedit leafpad l3afpad kedit kate kwrite gvim
do
which $i >& /dev/null
if [ $? = 0 ]; then
UTF8ED=$i
break
fi
done
export LC_CTYPE=zh_TW.UTF-8
export LC_ALL=zh_TW.UTF-8
if [ "$UTF8ED" = "gvim" ]; then
UTF8ED='gvim -f'
fi
if [ -n "$UTF8ED" ]; then
$UTF8ED $1
fi
|