Hi,

   +-From: "Oberhuber, Martin" <[EMAIL PROTECTED]> --
   |_Date: Wed, 3 Oct 2007 15:07:27 +0200 ________________________
   |
   |1. Jsch should allow clients to read the desired remote
   |   encoding that was set during version handshake

I guess that you are talking about "filename-charset" extension,
but it has been only available since sftp protocol 6.

You know that version 6 has been periodicaly updated since October 2004
and I hardly believe that there exists the implemetation on this planet
at the present time.  Frankly to say, it is not the good time to handle it.

   |2. Jsch should allow clients to disable UTF-8 translation
   |   when supported by the server

I'm sorry, but 'when supported by the server' is not clear for me.
I guess that means  'when "filename-charset" extension is supported ...'.

   |3. Jsch should allow clients to do their own encoding
   |   when EITHER protocol version <= 3 OR UTF-8 translation
   |   has been disabled in (2)

What do you mean 'their own encoding'?

As far as I have understood, all clients can do is
just to accept the offer for using some encoding from "filename-charset"
or reject it.  For example, if sftpd offers to use "SJIS" encoding
and the client accept it, the client should use "SJIS" and should not
use other encoding, for example, "EUC-JP".  It seems to me
you are planning to use other encoding. Have I misunderstood your
intension?

   |When these are implemented, our application will present 
   |the server's recommended charset we read in (1) to the 
   |user, and if user overrides it we will send the override
   |command in (2) and specify our own encoding in (3).
   |Would that be possible?

As I have written above, I'll not change the code for
sftp protocol 6 at this time.

By the way, I have finished to modify the code to use
UTF-8 for filenames internally and added setFilenameEncoding method.
I have confirmed that Japanese filenames(in UTF-8, SJIS, EUC-JP) can be 
transferred by put, get, ls, etc, between WindowsXP and GNU/Linux.
I have also confirmed that the globing will work for such 
filenames.  After some more testing, I'll release it formally.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to