Issue #11872 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: UNKNOWN, 2.3: UNKNOWN

----------------------------------------
Bug #11872: Use 'ASCII-8BIT', not 'binary', for miniruby
https://bugs.ruby-lang.org/issues/11872#change-56877

* Author: Martin Drst
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.4.0dev (2015-12-26 trunk 53314) [x86_64-cygwin]
* Backport: 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I get the following error when trying to compile ruby trunk:
[short version; long version below]
.ext/common/openssl/buffering.rb:1: unknown encoding name: binary (ArgumentError)

miniruby does not seem to know the 'binary' encoding, only 'ASCII-8BIT', as follows:

duerst@Arnisee /cygdrive/c/Data/ruby
$ ./miniruby -e 'puts String.new(encoding: "binary")'
-e:1:in `initialize': unknown encoding name - binary (ArgumentError)
        from -e:1:in `new'
        from -e:1:in `<main>'

duerst@Arnisee /cygdrive/c/Data/ruby
$ ./miniruby -e 'puts String.new(encoding: "UTF-8")'


duerst@Arnisee /cygdrive/c/Data/ruby
$ ./miniruby -e 'puts String.new(encoding: "ASCII-8BIT")'


duerst@Arnisee /cygdrive/c/Data/ruby


[long version of error]
./miniruby.exe -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-cygwin-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
/cygdrive/c/Data/ruby/.ext/common/openssl/buffering.rb:1: unknown encoding name: binary (ArgumentError)
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/.ext/common/openssl/ssl.rb:13:in `<top (required)>'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/.ext/common/openssl.rb:21:in `<top (required)>'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/security.rb:12:in `<top (required)>'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/package.rb:44:in `<top (required)>'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/installer.rb:10:in `<top (required)>'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from ./tool/rbinstall.rb:657:in `<module:RbInstall>'
        from ./tool/rbinstall.rb:585:in `<main>'
uncommon.mk:269: recipe for target 'do-install-nodoc' failed
make: *** [do-install-nodoc] Error 1




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>