winscp fails to read directory list

winscp fails to read directory list

WinSCP fails to get the filelist of a remote directory. The server does for "ls -la" precede the file list with a summary line, and winscp stumbles over it. What can I do? Is there a configuration option to give ls some other options?

For a local shell I managed to get the responsible environment variable removed. With that, 'ls -la' does print 'total nnn' as first line. I guess WinSCP knows this and can proceed.

So I just don't found out how to do removing this variable with the shell WinSCP opens. Is there any option for that?
Otherwise - i don't know how. I have a tcsh for my user, running on an older SuSE Linux.

Hi,
when I change my account settings to have a bash, it works fine (winscp does unset it bash understands it).
With my default tcsh it does not work, it ignores the unset command.
I had to execute "setenv LANG=" to get it cleared, found no other way.