[PATCH] UTF8 and sftp-server

Marton Balint cus at fazekas.hu
Fri Jul 17 22:21:00 EST 2009


Hi,

Currently the openssh sftp-server only supports sftp protocol version 3, 
and unless I am mistaken there are no plans to support newer versions of 
this protocol.

The encoding of the filenames for this protocol version is unspecified, so 
there is no reliable way for an sftp client to detect the encoding of the 
filenames.

To solve this problem, I am proposing here a new sftp extension to allow 
the sftp server to give a hint to the clients whether or not they should 
interpret the filenames as utf-8. I tried to keep the patch as simple as 
possible (introduced a new command line parameter to sftp-server, when 
specified, the server would send this extension)

I also made contact with Martin Prikryl, the developer of WinSCP, he wrote 
that if the extension got in to openSSH, he would be happy to add support 
for it: http://winscp.net/forum/viewtopic.php?t=7108

Regards,
  Marton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssh-utf8.patch
Type: text/x-patch
Size: 2078 bytes
Desc: 
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20090717/44ae1f99/attachment-0001.bin>


More information about the openssh-unix-dev mailing list