From 821ae88259f349909ae2e956b09c4d8bf35e1792 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 12 Sep 2011 03:54:53 +0000 Subject: [PATCH] * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to open files in binary mode. see more details in https://github.com/jimweirich/rake/issues/74 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rake/file_list.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 67e93a6c71..530ee3ce54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Sep 12 12:53:39 2011 NAKAMURA Usaku + + * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to + open files in binary mode. + see more details in https://github.com/jimweirich/rake/issues/74 + Mon Sep 12 12:42:36 2011 Nobuyoshi Nakada * test/ruby/test_exception.rb (TestException#test_exit_success_p): diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb index 9f780346f3..e49ccd0147 100644 --- a/lib/rake/file_list.rb +++ b/lib/rake/file_list.rb @@ -286,7 +286,7 @@ module Rake matched = 0 each do |fn| begin - open(fn, "rb", *options) do |inf| + open(fn, "r:ascii-8bit", *options) do |inf| count = 0 inf.each do |line| count += 1