Hello, From: "Francesco P. Lovergine" <frankie_at_debian.org> Date: Mon, 18 Oct 2010 17:04:41 +0200
> fran...@blegrez:~$ telnet localhost 21 > Trying ::1... > Connected to localhost. > Escape character is '^]'. > 220 ProFTPD 1.3.3a Server (Debian) [::1] > LANG en_US > 200 Using language en_US > LANG it_IT > 200 In uso la lingua it_IT > quit > 221 Arrivederci. > Connection closed by foreign host. > > >> Hmm, LANG command is accepted but the response message is not >> affected. Is this a bug or spec? >> > > Please verify that locale -a includes the required localization sets. > If you installed localepurge probably they have been stripped out. > Also check answer by proftpd -td6 to verify all provided locale > are loaded. $ locale -a C POSIX en_US.iso885915 en_US.utf8 fr_FR.utf8 it_IT.utf8 ja_JP.utf8 $ sudo /usr/sbin/proftpd -td6 (snip) localhost - DelayEngine localhost - mod_lang/0.9: skipping possible language 'bg_BG': not supported by setlocale(3); see `locale -a' localhost - mod_lang/0.9: skipping possible language 'it': not supported by setlocale(3); see `locale -a' localhost - mod_lang/0.9: skipping possible language 'ko_KR': not supported by setlocale(3); see `locale -a' localhost - mod_lang/0.9: skipping possible language 'ru': not supported by setlocale(3); see `locale -a' localhost - mod_lang/0.9: skipping possible language 'zh_CN': not supported by setlocale(3); see `locale -a' localhost - mod_lang/0.9: skipping possible language 'zh_TW': not supported by setlocale(3); see `locale -a' Syntax check complete. ... 'it' (not 'it_IT') was skipped, why? Fwiw, I noticed that if the "LANGUAGE" environment variable is set and using LANG client command then the response message is forced to be language specified by it. $ sudo env - LANGUAGE=it_IT.UTF-8 /etc/init.d/proftpd restart Stopping ftp server: proftpd. Starting ftp server: proftpd. $ telnet localhost 21 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 ProFTPD 1.3.3a Server (Debian) [::ffff:127.0.0.1] FEAT 211-Features: MDTM MFMT TVFS UTF8 MFF modify;UNIX.group;UNIX.mode; MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*; LANG en-US.UTF-8;en-US*;fr-FR.UTF-8;fr-FR;ja-JP.UTF-8;ja-JP SITE MKDIR SITE RMDIR SITE UTIME SITE SYMLINK REST STREAM SIZE 211 End LANG ja_JP 200 In uso la lingua ja_JP LANG fr_FR 200 In uso la lingua fr_FR LANG en_US 200 In uso la lingua en_US QUIT 221 Arrivederci. Connection closed by foreign host. If this is a specification of ProFTPd (or GetText?), that is no problem. Without a LANGUAGE, the LANG client command works fine as I expected. # Even so, it_IT is not supported... $ sudo env - LANGUAGE= /etc/init.d/proftpd restart Stopping ftp server: proftpd. Starting ftp server: proftpd. $ telnet localhost 21 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 ProFTPD 1.3.3a Server (Debian) [::ffff:127.0.0.1] LANG it_IT 504 Language it_IT not supported LANG fr_FR 200 Utilisation de la langue fr_FR LANG en_US 200 Using language en_US QUIT 221 Goodbye. Connection closed by foreign host. Thanks, -- Nobuhiro IMAI <[email protected]> Key fingerprint = E57F 2482 4074 13BC 3B9A 165B C689 5B16 A620 4657
pgpQwMJs1DDek.pgp
Description: PGP signature

