summaryrefslogtreecommitdiff
path: root/lib/rake/file_list.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-12 03:54:53 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-12 03:54:53 +0000
commit821ae88259f349909ae2e956b09c4d8bf35e1792 (patch)
tree5eec57eb930d2ed62f79813ac08fc7924f568247 /lib/rake/file_list.rb
parenta458e72e7c70fa7e3208cf31c115c42317116c06 (diff)
* 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
Diffstat (limited to 'lib/rake/file_list.rb')
-rw-r--r--lib/rake/file_list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb
index 9f780346f3a..e49ccd0147f 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