<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>ssh2 fails for non EN locale</title>
  <pubDate>Fri, 04 Jul 2008 11:05:59 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6396</link>
  <atom:link rel="self" type="application/rss+xml" title="ssh2 fails for non EN locale" href="http://bugs.horde.org/ticket/6396/rss" />
  <description>ssh2 fails for non EN locale</description>

  
  
  <item>
   <title>My server has got an non-us locale and ls therefore does not</title>
   <description>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-&gt;_stream, &quot;ls -al &quot;.escapeshellarg($path));
and
$stream = @ssh2_exec($this-&gt;_stream, &quot;ls -l &quot;.escapeshellarg($path));

into 

$stream = @ssh2_exec($this-&gt;_stream, &quot;LC_ALL=C ls -al &quot;.escapeshellarg($path));
and
$stream = @ssh2_exec($this-&gt;_stream, &quot;LC_ALL=C ls -l &quot;.escapeshellarg($path));

This sets the locale to the default and works for me.</description>
   <pubDate>Fri, 07 Mar 2008 07:36:39 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6396#t43537</link>
  </item>
  <item>
   <title>LC_TIME instead of LC_ALL would be sufficient.</title>
   <description>LC_TIME instead of LC_ALL would be sufficient.</description>
   <pubDate>Fri, 07 Mar 2008 07:38:27 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6396#t43538</link>
  </item>
  <item>
   <title>Looks okay to me - committed, thanks!</title>
   <description>Looks okay to me - committed, thanks!</description>
   <pubDate>Fri, 07 Mar 2008 17:04:11 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6396#t43562</link>
  </item>
  

 </channel>
</rss>
