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

Author Message
Thomas Mack


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 beim Anzeigen des Verzeichnisses "/".
Unerwartete Zeile in Verzeichnisliste "insgesamt 27156".
Ungltige Rechte Beschreibung 'nsgesamt '
OK   Hilfe   

Error listing directory "/"
Unexpected line in directory listing "insgesamt 27156".
Invalid permission 'nsgesamt '
Ok Help
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
WinSCP unsets both these on startup. Unless you have disabled this functionality (Clear national variables):
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License