[前][次][番号順一覧][スレッド一覧]

ruby-changes:21205

From: usa <ko1@a...>
Date: Mon, 12 Sep 2011 12:55:03 +0900 (JST)
Subject: [ruby-changes:21205] usa:r33254 (trunk): * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to

usa	2011-09-12 12:54:53 +0900 (Mon, 12 Sep 2011)

  New Revision: 33254

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33254

  Log:
    * 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

  Modified files:
    trunk/ChangeLog
    trunk/lib/rake/file_list.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33253)
+++ ChangeLog	(revision 33254)
@@ -1,3 +1,9 @@
+Mon Sep 12 12:53:39 2011  NAKAMURA Usaku  <usa@r...>
+
+	* 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@r...>
 
 	* test/ruby/test_exception.rb (TestException#test_exit_success_p):
Index: lib/rake/file_list.rb
===================================================================
--- lib/rake/file_list.rb	(revision 33253)
+++ lib/rake/file_list.rb	(revision 33254)
@@ -286,7 +286,7 @@
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]