Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Artem Tashkinov wrote:

Is it possible to export locale variable upon login to SSH server? If so, you could add an extra option to WinSCP like "Run these commands upon login" where we could enter:

export LANG="ru_RU.CP866" or export LANG="ru_RU.UTF-8" and enjoy "good" file names.

It is not possible with SFTP :-(
However most SSH servers launch some kind of startup script on login. You can set the variables from there. Typically it is script associated with your default shell, because SFTP server is usually run via default shell.
martin

GadskyPapa wrote:

martin wrote:

It is the most common, but unfortunatelly their SFTP server is one of the most backward :-(


https://bugzilla.mindrot.org/show_bug.cgi?id=1068

So post there follow up, to push them to implement SFTP4 :-)
Artem Tashkinov

Is it possible to export locale variable upon login to SSH server? If so, you could add an extra option to WinSCP like "Run these commands upon login" where we could enter:

export LANG="ru_RU.CP866" or export LANG="ru_RU.UTF-8" and enjoy "good" file names.
martin

Artem Tashkinov wrote:

I have openssh-4.1p installed and that's the _most_ common and widely used SSH implementation in the world. Meanwhile its SFTP part contains only protocol version 3.

It is the most common, but unfortunatelly their SFTP server is one of the most backward :-(
Artem Tashkinov

I meant OpenSSH server from openssh.org (that OpenBSD's implementation).
Artem Tashkinov

I have openssh-4.1p installed and that's the _most_ common and widely used SSH implementation in the world. Meanwhile its SFTP part contains only protocol version 3.

Any ideas?
martin

Artem Tashkinov wrote:

The problem is that my server locale is KOI8-R. I have no idea how SFTP works but by now all file names look like a mess.

Sure. But your SFTP server should translate it into Unicode. If it does not, blame your SFTP server, not WinSCP.
Artem Tashkinov

The problem is that my server locale is KOI8-R. I have no idea how SFTP works but by now all file names look like a mess.
martin

Re: support server-client file names translation

WinSCP supports Unicode.
GadskyPapa

support server-client file names translation

I would like WinSCP to support server-client file names translation. E.g., my unix box runs KOI8-R locale and my Windows system has CP866 file names locale. So I would like my unix box file names to be converted to CP866 on-the-fly via application settings.