Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Re: ls -la command fails on scp login with german LANG/LC_ALL

WinSCP unsets both these on startup. Unless you have disabled this functionality (Clear national variables):
https://winscp.net/eng/docs/ui_login_scp
Thomas Mack

ls -la command fails on scp login with german LANG/LC_ALL

When opening a new session with SCP and the remote login has LANG and LC_ALL set to de_DE.UTF-8 or similar, the directory listing via ls -la starts with something like:
aaaaa@xxxx ~ 176 > ls -la| head

insgesamt 3122724
drwxr-xr-x 165 mack users       32768 Mai 18 23:01 .
drwxr-xr-x   3 root root            0 Mai 19 15:30 ..
-rw-r--r--   1 mack users      270013 Feb 25  2011 104510.pbm
-rw-r--r--   1 mack users        1600 Feb 25  2011 104510.png

The first line is total 3122724 in english environments, which works ok.

WinSCP tries to interpret the first line (insgesamt 3122724) as a normal output line of ls -l and stumbles over the file permissions nsgesamt resulting in a missing directory listing.

The german error message reads:
---------------------------

Fehler
---------------------------
Fehler beim Anzeigen des Verzeichnisses "/".
---------------------------
Unerwartete Zeile in Verzeichnisliste "insgesamt 27156".
Ungültige  Rechte Beschreibung 'nsgesamt '
---------------------------
OK   Hilfe   
---------------------------

Error

Error listing directory "/"
Unexpected line in directory listing "insgesamt 27156".
Invalid permission 'nsgesamt '
Ok   Help