Project

General

Profile

Actions

Bug #11872

closed

Use 'ASCII-8BIT', not 'binary', for miniruby

Added by duerst (Martin Dürst) almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0dev (2015-12-26 trunk 53314) [x86_64-cygwin]
[ruby-core:72481]

Description

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 `'

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
'
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
'
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 `'
uncommon.mk:269: recipe for target 'do-install-nodoc' failed
make: *** [do-install-nodoc] Error 1

Actions

Also available in: Atom PDF