Summary | ssh2 fails for non EN locale |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | chuck (at) horde (dot) org |
Requester | michael-dev (at) fami-braun (dot) de |
Created | 2008-03-07 (4700 days ago) |
Due | |
Updated | 2008-03-07 (4700 days ago) |
Assigned | 2008-03-07 (4700 days ago) |
Resolved | 2008-03-07 (4700 days ago) |
Milestone | 3.2 |
Patch | No |
Assigned to Chuck Hagenbuch
Taken from
State ⇒ Resolved
State ⇒ Assigned
Milestone ⇒ 3.2
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ ssh2 fails for non EN locale
Queue ⇒ Horde Framework Packages
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.