1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2011-09-12 03:54:53 +00:00
parent a458e72e7c
commit 821ae88259
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Mon Sep 12 12:53:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 <nobu@ruby-lang.org> Mon Sep 12 12:42:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_exception.rb (TestException#test_exit_success_p): * test/ruby/test_exception.rb (TestException#test_exit_success_p):

View file

@ -286,7 +286,7 @@ module Rake
matched = 0 matched = 0
each do |fn| each do |fn|
begin begin
open(fn, "rb", *options) do |inf| open(fn, "r:ascii-8bit", *options) do |inf|
count = 0 count = 0
inf.each do |line| inf.each do |line|
count += 1 count += 1