summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 13:02:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 13:02:48 +0000
commit007f35ba89006bebb41053f8f08c997daa31b365 (patch)
tree2eafb8ad0abe11d590cbde979822d5e5314fe9be /tool
parent1dcc985092bffe89c80b59436e2b2b64c49948ed (diff)
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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/strip-rdoc.rb1
1 files changed, 1 insertions, 0 deletions
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