This patch enables users to specify charset that remote
machine
use for file and directory names. When different
iochaset and
fscharset options given, LUFS will convert encoding of
file names,
so that users can see normal file names, if remote and
local
machine encodings differs.
To compile LUFS with charset conversion enabled, pass
`--enable-charset' option to the `configure' script.
Usage example:
$ lufsmount ftpfs://ftp.somehost.com ~/mnt/ftp \ -o fscharset=cp1251,iocharset=koi8-u
This will mount remote file system with cp1251 charset
using koi8-u
as local machine charset.
To avoid typing iocharset every time, users can write it to
`lufsd.conf', for example:
MOUNT::iocharset = koi8-u
This method will work for fscharset too.
Bugs: charset conversion requires additional system
resources (CPU and memory), don't works with two-byte
encodings such as UCS-2 (UTF-8 works fine).
Patch that enables charset conversion support