national character in filename

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
wolfgang
Posts: 12
Joined: Tue May 17, 2011 2:37 am

national character in filename

Post by wolfgang »

Hello
i have file with national characters in windows i try to transfer with winscp to z/os uss but i never saw the right national characters in z/os filename.
has anyone an idea what is necessary to see in z/os the right national character in filename on uss
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: national character in filename

Post by dovetail »

My guess is that the encoding of the character in question is not as expected.

To see what is happening, get a trace of the server by adding this to the user's $HOME/.ssh/sftp-server.rc file:

export SFTP_SERVER_OPTIONS="-e -l debug3"

This will produce debug messages from the Co:Z OpenSSH base code to the sftp server log file.

Look for and post the messages having to do with the file name, like "open "filename" flags ????? mode 0nnnn"

PS>
Co:Z SFTP is currently based on OpenSSH 5.0p1 (as is IBM Ported Tools OpenSSH).
OpenSSH SFTP is based on http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02, which is protocol version "3".
In later versions of the spec, file names are defined to be UTF-8, but in the version that OpenSSH uses they are not.
Co:Z SFTP currently converts filenames using the "a2e_l()" library function, which converts ISO8859-1 -> IBM-1047
Post Reply