[Tickets #6396] ssh2 fails for non EN locale

bugs at horde.org bugs at horde.org
Fri Mar 7 12:36:39 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6396
-----------------------------------------------------------------------
 Ticket             | 6396
 Created By         | michael-dev at fami-braun.de
 Summary            | ssh2 fails for non EN locale
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


michael-dev at fami-braun.de (2008-03-07 07:36) wrote:

My server has got an non-us locale and ls therefore does not print the
expected date format in VFS/ssh2.php.
Solution: Change 
$stream = @ssh2_exec($this->_stream, "ls -al ".escapeshellarg($path));
and
$stream = @ssh2_exec($this->_stream, "ls -l ".escapeshellarg($path));

into 

$stream = @ssh2_exec($this->_stream, "LC_ALL=C ls -al
".escapeshellarg($path));
and
$stream = @ssh2_exec($this->_stream, "LC_ALL=C ls -l
".escapeshellarg($path));

This sets the locale to the default and works for me.



More information about the bugs mailing list