1、卸载系统中已安装的gftp-2.0.18(如果还没有安装,则直接进入第二步)
#apt-get --purge remove gftp
2、下载gftp-2.0.18的源码包(gftp-2.0.18.tar.bz2)及远程字符集补丁(gftp_remote_charsets.patch.gz)。
3、打补丁,编译,安装
假设上述两个包均放在/tmp文件夹中,用root账号执行下列操作:
(a)解压缩gftp源码包
#tar jxvf gftp-2.0.18.tar.bz2
得到一个文件夹:gftp-2.0.18/
(b)解压缩补丁包
#gunzip gftp_remote_charsets.patch.gz
得到gftp_remote_charsets.patch文件
(c)打补丁
#patch -p0 < remote_charsets="gbk,utf-8,gb2312,cp936" g_filename_encoding="@GBK">
G_FILENAME_ENCODING
. This environment variable can be set to a comma-separated list of character set names. GLib assumes that filenames are encoded in the first character set from that list rather than in UTF-8. The special token "@locale" can be used to specify the character set for the current locale.详细解释请查看官方文档:http://developer.gnome.org/doc/API/2.4/glib/glib-running.html
1 条评论:
很好,谢谢
发表评论