From 007f35ba89006bebb41053f8f08c997daa31b365 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Dec 2013 13:02:48 +0000 Subject: [PATCH] strip-rdoc.rb: binmode * tool/strip-rdoc.rb: read in binary mode to get rid of errors by non-ascii characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/strip-rdoc.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/strip-rdoc.rb b/tool/strip-rdoc.rb index 449f9b71a8..1902cb538c 100755 --- a/tool/strip-rdoc.rb +++ b/tool/strip-rdoc.rb @@ -1,5 +1,6 @@ #!ruby +ARGF.binmode source = ARGF.read source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment| marker, comment = $1, $2