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

ruby-changes:31938

From: nobu <ko1@a...>
Date: Thu, 5 Dec 2013 22:02:55 +0900 (JST)
Subject: [ruby-changes:31938] nobu:r44017 (trunk): strip-rdoc.rb: binmode

nobu	2013-12-05 22:02:48 +0900 (Thu, 05 Dec 2013)

  New Revision: 44017

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

  Log:
    strip-rdoc.rb: binmode
    
    * tool/strip-rdoc.rb: read in binary mode to get rid of errors by
      non-ascii characters.

  Modified files:
    trunk/tool/strip-rdoc.rb
Index: tool/strip-rdoc.rb
===================================================================
--- tool/strip-rdoc.rb	(revision 44016)
+++ tool/strip-rdoc.rb	(revision 44017)
@@ -1,5 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/tool/strip-rdoc.rb#L1
 #!ruby
 
+ARGF.binmode
 source = ARGF.read
 source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|
   marker, comment = $1, $2

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

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