|
如题,我按wiki上写的 :
ftp乱码
很多ftp站点是GBK编码,如果使用UTF8的locale,下载的文件名可能会乱码。对于lftp,在.lftp/rc下做如下设置
set ftp:charset "gbk"
set file:charset "UTF-8"
对于gftp,可以在.gftp/gftprc中做如下设置即可正确显示服务器端gbk编码的文件名
remote_charsets=gb2312
但下载下来的文件名仍然是乱码,此时需要打补丁。补丁地址为: http://www.teatime.com.tw/%7Etom ... mote_charsets.patch
下载patch文件,现在不知道该怎么打这个补丁,在/usr/share/gftp目录下直接:
patch patch.file 提示出错,出错信息如下:
[root@myhost gftp]# patch < gftp_remote_charsets.patch
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nur gftp-2.0.18/lib/local.c gftp-2.0.18.patched/lib/local.c
|--- gftp-2.0.18/lib/local.c 2005-02-02 09:24:51.000000000 +0800
|+++ gftp-2.0.18.patched/lib/local.c 2005-02-28 14:41:00.000000000 +0800
--------------------------
File to patch: |
|