diff options
Diffstat (limited to 'lib/rake/file_list.rb')
-rw-r--r-- | lib/rake/file_list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb index e49ccd0147..b74ecac4cc 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, "r:ascii-8bit", *options) do |inf| + open(fn, "r", *options) do |inf| count = 0 inf.each do |line| count += 1 @@ -340,7 +340,7 @@ module Rake # Add matching glob patterns. def add_matching(pattern) - Dir[pattern].each do |fn| + Rake.glob(pattern).each do |fn| self << fn unless exclude?(fn) end end |