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 | 03/07/2008 (6326 days ago) |
Due | |
Updated | 03/07/2008 (6326 days ago) |
Assigned | 03/07/2008 (6326 days ago) |
Resolved | 03/07/2008 (6326 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 3.2 |
Patch | No |
Assigned to Chuck Hagenbuch
Taken from
State ⇒ Resolved
Milestone ⇒ 3.2
State ⇒ Assigned
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ ssh2 fails for non EN locale
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
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.