Hi,

   +-From: "Viet H. Phan" <[email protected]> --
   |_Date: Thu, 25 Nov 2010 19:36:55 -0800 (PST) _____
   |
   |The SFTP specs state that, I think.I agree with Martin that the code
   |should be if(sversion >= 3) {...} 
   |(or if(sversion >= 3 && sversion <= 5){...} if it intends to support newer
   | SFTP protocol versions).

Ah, I have understood what is ponted.  It is a stupid bug.
I agree that it should be
  if(3 <= sversion && sversion <= 5 &&
     !encoding.equals(UTF8)){ 
    throw new SftpException(SSH_FX_FAILURE,
                            "The encoding can not be changed for this sftp 
server.");
  }

It will be fixed in the next version.
Thank you for your feedback.


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
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to