diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-05 13:02:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-05 13:02:48 +0000 |
commit | 007f35ba89006bebb41053f8f08c997daa31b365 (patch) | |
tree | 2eafb8ad0abe11d590cbde979822d5e5314fe9be | |
parent | 1dcc985092bffe89c80b59436e2b2b64c49948ed (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
-rwxr-xr-x | tool/strip-rdoc.rb | 1 |
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 |