The problem with UTF-8 capable ftp sites
Hasso Tepper <[email protected]> Wed, 16 Sep 2009 10:55:20 +0300
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
There is a problem in the code which doesn't allow to connect to the UTF-8 capable ftp sites at least on NetBSD and DragonFly platforms. Both these platforms are using iconv implementation from Citrus project. The problem is that logging in already fails - the prompt is just sitting there on "Logging in". The snippet from debug output: ---> OPTS UTF8 ON <--- 200 Always in UTF8 mode. iconv_open(US-ASCII//TRANSLIT,UTF-8) failed: Invalid argument ---> USER anonymous The point is that "//TRANSLIT" is unnecessary and really invalid argument for Citrus iconv_open. Also, shouldn't it behave more sanely if iconv_open() is failing for whatever reason? I added a quick workaround to the pkgsrc package ifdefing "if(translit)" part out from DataRecoder::DataRecoder() for NetBSD and DragonFly, but I think that permanent solution should be better than that. regards, -- Hasso Tepper