[PATCH] force to use UTF-8 for remote sftp and ftp
Posted: 2005-03-13 15:24
Hi!
I just submit 3 patches to sourceforge.net for FileZilla. This will add an option in SiteManager Advance Dialog, to force use UTF-8 encode/decode for remote sftp/ftp server.
patch 1:
http://sourceforge.net/tracker/index.ph ... tid=372243
This patch will fix some buffer overflow while using sftp for unicode build.
patch 2:
http://sourceforge.net/tracker/index.ph ... tid=372243
This patch will let FzSFtp.exe work for unicode build.
patch 3:
http://sourceforge.net/tracker/index.ph ... tid=372243
This contain 2 patches:
1. filezilla_utf8.patch
2. filezilla_utf8_resource.patch.gz
first one patch will modify source code and English resource for add an UTF-8 option for SiteManager Advance dialog.
second one patch will modify all other language resource file for this option.
And, for unicode build, this patch change the IPC protocol between FileZilla.exe and FzSFtp.exe, it will convert the local file to UTF-8 encode in FileZilla.exe, then decode it to unicode string in FzSFtp.exe for both GET/PUT method.
I already test both ansi and unicode build, this patch work for me. (I can get correct Chinese and Japan filename in unicode build, of cause, for ansi build, I can only get correct Chinese filename because I'm using Chinese Windows XP...)
The status message will show UTF-8 encoding directly in sftp mode.
I just submit 3 patches to sourceforge.net for FileZilla. This will add an option in SiteManager Advance Dialog, to force use UTF-8 encode/decode for remote sftp/ftp server.
patch 1:
http://sourceforge.net/tracker/index.ph ... tid=372243
This patch will fix some buffer overflow while using sftp for unicode build.
patch 2:
http://sourceforge.net/tracker/index.ph ... tid=372243
This patch will let FzSFtp.exe work for unicode build.
patch 3:
http://sourceforge.net/tracker/index.ph ... tid=372243
This contain 2 patches:
1. filezilla_utf8.patch
2. filezilla_utf8_resource.patch.gz
first one patch will modify source code and English resource for add an UTF-8 option for SiteManager Advance dialog.
second one patch will modify all other language resource file for this option.
And, for unicode build, this patch change the IPC protocol between FileZilla.exe and FzSFtp.exe, it will convert the local file to UTF-8 encode in FileZilla.exe, then decode it to unicode string in FzSFtp.exe for both GET/PUT method.
I already test both ansi and unicode build, this patch work for me. (I can get correct Chinese and Japan filename in unicode build, of cause, for ansi build, I can only get correct Chinese filename because I'm using Chinese Windows XP...)
The status message will show UTF-8 encoding directly in sftp mode.