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

Advertisement

Thomas Mack
Guest

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum