Comment #24 on issue 60 by piliszekm: Support for configuring character encoding
http://code.google.com/p/robotframework-sshlibrary/issues/detail?id=60

The same is happening on the newest devel version.

Test:
*** Settings ***
Library           SSHLibrary    WITH NAME    ssh

*** Test Cases ***
test
    ${IP}    Set Variable    ....
    ${USER}    Set Variable    ....
    ${PASS}    Set Variable    ...
    ${PROMPT}    Set Variable    ....
    ${ENCODING}    Set Variable    iso-8859-2
Open Connection ${IP} prompt=${PROMPT} encoding=${ENCODING} timeout=20
    Login    ${USER}    ${PASS}
    Write    export PS1="testprompt$"
    Set Client Configuration    prompt=testprompt$    encoding=${ENCODING}
    Read Until Prompt
    Sleep    1s
    Read
    Write    ls /tmp/test*
    Read Until Prompt
    ssh.Get File    /tmp/test.txt
    ssh.Get File    /tmp/testä.txt


Console output:
....

20131120 11:46:17.698 :  INFO : 1: export PS1="testprompt$
20131120 11:46:18.699 :  INFO : Slept 1 second
20131120 11:46:18.701 :  INFO :
"
testprompt$
20131120 11:46:18.818 :  INFO : ls /tmp/test*
20131120 11:46:18.828 :  INFO :
/tmp/test.txt    /tmp/testä.txt
testprompt$
20131120 11:46:19.336 : INFO : [chan 2] Opened sftp connection (server version 3) 20131120 11:46:21.702 : INFO : '/tmp/test.txt' -> 'D:\Dokumenty\Praca\Automation\Finland\test.txt' 20131120 11:46:23.004 : FAIL : There were no source files matching '/tmp/testä.txt'.
Ending test:   Test.test


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to