Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Valentin Nechayev                    2:5020/400     28 Mar 2002  12:31:50
 To : Alexandr Kovalenko
 Subject : Re: Русские символы в ProFTPD
 -------------------------------------------------------------------------------- 
 
 >>> Alexandr Kovalenko wrote:
 
 > >> Hапример в Far'е можно сказать, в какой кодировке писать файлы.
 > >> А насчёт буковки 'я' из cp1251 -- это служебный символ.
 > >> Пользуй koi8-u.
 > > А в ней - страшно сказать - пропадет большой твердый знак :)
 > Логично, ибо он 0xff....
 
 Что ж тут логичного?
 
 === cut RFC959 ===
    The File Transfer Protocol follows the specifications of the Telnet
    protocol for all communications over the control connection.  Since
    the language used for Telnet communication may be a negotiated
    option, all references in the next two sections will be to the
    "Telnet language" and the corresponding "Telnet end-of-line code".
    Currently, one may take these to mean NVT-ASCII and <CRLF>.  No other
    specifications of the Telnet protocol will be cited.
 
    FTP commands are "Telnet strings" terminated by the "Telnet end of
    line code".  The command codes themselves are alphabetic characters
    terminated by the character <SP> (Space) if parameters follow and
    Telnet-EOL otherwise.  The command codes and the semantics of
    commands are described in this section; the detailed syntax of
    commands is specified in the Section on Commands, the reply sequences
    are discussed in the Section on Sequencing of Commands and Replies,
    and scenarios illustrating the use of commands are provided in the
    Section on Typical FTP Scenarios.
 === end cut ===
 
 То есть, telnet options явно указаны к использованию.
 
 Далее, в RFC854 явно указана telnet command structure, в частности:
 
 === cut RFC854 ===
       IAC                 255    Data Byte 255.
 === end cut ===
 
 То есть,
 1. ftp клиенты и сервера должны поддерживать опции telnet протокола.
 2. Байт данных 0xFF в команде должен передаваться как два октета - FF FF.
 3. Кто делает иначе (режет,двоит,...) - тот нарушает RFC.
 4. По пункту 3 - кто делает иначе, тот ламер и бяка.;))
 /netch
 --- ifmail v.2.15dev5
  * Origin: Dark side of coredump (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: Русские символы в ProFTPD   Alexandr Kovalenko   27 Mar 2002 20:43:24 
 Re: Русские символы в ProFTPD   Valentin Nechayev   28 Mar 2002 12:31:50 
Архивное /ru.unix.bsd/7368ac6233c2.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional