pkgsrc/lang/ruby26-base/patches/patch-lib_rdoc_encoding.rb
taca 6784ce300d lang/ruby26-base: add Ruby 2.6.1
Add Ruby release 2.6.1.

Ruby 2.6.0 (2018-12-25)

New major features:

* A new JIT compiler.
* The RubyVM::AbstractSyntaxTree module.

For more detail, please refer: <https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/>


Ruby 2.6.1 (2019-01-30)

Major change:

* Net::Protocol::BufferedIO#write raises NoMethodError when sending large
  multi-byte string has been fixed.

For more detail, please refer: <https://www.ruby-lang.org/en/news/2019/01/30/ruby-2-6-1-released/>
2019-02-03 13:41:33 +00:00

15 lines
553 B
Ruby

$NetBSD: patch-lib_rdoc_encoding.rb,v 1.1 2019/02/03 13:41:33 taca Exp $
* Always convert "\r\n" to "\n" since it cause rdoc processing error.
--- lib/rdoc/encoding.rb.orig 2018-03-26 05:56:26.000000000 +0000
+++ lib/rdoc/encoding.rb
@@ -31,7 +31,7 @@ module RDoc::Encoding
def self.read_file filename, encoding, force_transcode = false
content = File.open filename, "rb" do |f| f.read end
- content.gsub!("\r\n", "\n") if RUBY_PLATFORM =~ /mswin|mingw/
+ content.gsub!("\r\n", "\n")
utf8 = content.sub!(/\A\xef\xbb\xbf/, '')