[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26260] [Bug #2259] Dir.foreach bug when used with command-line arguments

From: Benno Evers <redmine@...>
Date: 2009-10-23 20:53:43 UTC
List: ruby-core #26260
Bug #2259: Dir.foreach bug when used with command-line arguments
http://redmine.ruby-lang.org/issues/show/2259

Author: Benno Evers
Status: Open, Priority: Normal
ruby -v: ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]

This may be fixed in a newer version, but I couldn't check:

benno@benno-laptop:~/test$ ruby1.9 -v
ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]
benno@benno-laptop:~/test$ ls
äöüß  test1.rb  test2.rb
benno@benno-laptop:~/test$ cat test1.rb 
Dir.foreach(".") {|s| p s }
benno@benno-laptop:~/test$ cat test2.rb 
name = ARGV[0]
Dir.foreach(name) {|s| p s }
benno@benno-laptop:~/test$ ruby1.9 test1.rb 
"."
".."
"test1.rb"
"test2.rb"
"\xC3\xA4\xC3\xB6\xC3\xBC\xC3\x9F"
benno@benno-laptop:~/test$ ruby1.9 test2.rb .
"."
".."
"test1.rb"
"test2.rb"
test2.rb:2:in `foreach': conversion undefined for byte sequence (maybe invalid byte sequence) (RuntimeError)
	from test2.rb:2:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next