https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-10-24T08:45:49ZRuby Issue Tracking SystemBackport191 - Backport #2259: Dir.foreach bug when used with command-line argumentshttps://bugs.ruby-lang.org/issues/2259?journal_id=64092009-10-24T08:45:49Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="/issues/2259">[ruby-core:26260]</a> [Bug <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Dir.foreach bug when used with command-line arguments (Closed)" href="https://bugs.ruby-lang.org/issues/2259">#2259</a>] Dir.foreach bug when used with command-line arguments"<br>
on Sat, 24 Oct 2009 05:53:43 +0900, Benno Evers <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|This may be fixed in a newer version, but I couldn't check:</p>
<p>|benno@benno-laptop:~/test$ ruby1.9 test2.rb .<br>
|"."<br>
|".."<br>
|"test1.rb"<br>
|"test2.rb"<br>
|test2.rb:2:in <code>foreach': conversion undefined for byte sequence (maybe invalid byte sequence) (RuntimeError) | from test2.rb:2:in </code>'</p>
<p>It doesn't happen on my ruby 1.9.2dev (2009-10-24 trunk 25448) [i686-linux],<br>
so I assume it's fixed.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Backport191 - Backport #2259: Dir.foreach bug when used with command-line argumentshttps://bugs.ruby-lang.org/issues/2259?journal_id=64172009-10-24T21:24:54Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
Your ruby is 1.9.0, it is not supported now.</p>
<p>This filesystem encoding is implemented in Ruby 1.9.1.<br>
=end</p>