[OpenIndiana-discuss] gftp display bug with locale fr_FR.UTF-8 and work-around

cpforum cpforum at orange.fr
Sun Dec 17 17:41:57 UTC 2017


With fr_FR.UTF-8 locale and some others I think :

$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_ALL=
gftp display incorrect size for example 49?958 instead of 49958, 4?478?629 instead of 4478629 etc.

A workaround is to launch with LC_NUMERIC=C. and edit /usr/bin/gftp

#!/bin/sh

prefix=/usr
exec_prefix=${prefix}

LC_NUMERIC=C; export LC_NUMERIC <<<<<<< 

if [ "$DISPLAY " != " " ] && [ -f /usr/bin/gftp-gtk ]; then
exec /usr/bin/gftp-gtk ${1+"$@"}
elif [ -f /usr/bin/gftp-text ]; then
exec /usr/bin/gftp-text ${1+"$@"}
else
echo "Error: Can't find gFTP binaries installed in /usr/bin"
fi






More information about the openindiana-discuss mailing list