Skip to content

Commit

Permalink
* lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
Browse files Browse the repository at this point in the history
  open files in binary mode.
  see more details in jimweirich#74

(backported from ruby trunk r33254)
  • Loading branch information
unak authored and rctay committed Dec 6, 2011
1 parent 47c6d8a commit a5e3bd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Commands constant is no longer polluting top level namespace.
* Show only the interesting portion of the backtrace by default (James M. Lawrence).
* Added --reduce-compat optiont to remove backward compatible DSL hacks (James M. Lawrence).
* lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
open files in binary mode. (NAKAMURA Usaku)

== Version 0.9.2

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def egrep(pattern, *options)
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
Expand Down

0 comments on commit a5e3bd8

Please sign in to comment.