diff --git a/ChangeLog b/ChangeLog index 4b3d499799..91704f75eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 04 10:30:11 2007 Koichi Sasada + + * benchmark/run_rite.rb (bm) : fix to use lines + Wed Jan 3 18:49:15 2007 Yukihiro Matsumoto * io.c (rb_io_getline): lineno update condition was wrong. diff --git a/benchmark/run_rite.rb b/benchmark/run_rite.rb index 3b437c82ab..5fae587e30 100644 --- a/benchmark/run_rite.rb +++ b/benchmark/run_rite.rb @@ -26,7 +26,7 @@ end prepare_wc_input def bm file - prog = File.read(file).map{|e| e.rstrip}.join("\n") + prog = File.read(file).lines.map{|e| e.rstrip}.join("\n") return if prog.empty? /[a-z]+_(.+)\.rb/ =~ file