Project

General

Profile

Actions

Bug #10678

closed

uninitialized constant Encoding::UTF_7 (NameError) when compiling Ruby

Added by duerst (Martin Dürst) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.3.0dev (2014-12-30 trunk 49068) [x86_64-cygwin]
[ruby-core:67219]

Description

When using
make clean-enc; make up; make install-nodoc
I get the error below. The reason is that Encoding::UTF_7 isn't defined yet when downloading bundled gems.

Downloading bundled gem files...
/cygdrive/c/Data/ruby-public/lib/uri/common.rb:349:in <module:URI>': uninitialized constant Encoding::UTF_7 (NameError) from /cygdrive/c/Data/ruby-public/lib/uri/common.rb:15:in <top (required)>'
from /cygdrive/c/Data/ruby-public/lib/uri.rb:104:in require' from /cygdrive/c/Data/ruby-public/lib/uri.rb:104:in <top (required)>'
from /cygdrive/c/Data/ruby-public/lib/open-uri.rb:1:in require' from /cygdrive/c/Data/ruby-public/lib/open-uri.rb:1:in <top (required)>'
from /cygdrive/c/Data/ruby-public/tool/downloader.rb:1:in require' from /cygdrive/c/Data/ruby-public/tool/downloader.rb:1:in <top (required)>'
from -e:1:in `require'
uncommon.mk:914: recipe for target 'update-gems' failed
make[1]: *** [update-gems] Error 1
make[1]: Leaving directory '/cygdrive/c/Data/ruby-public'
uncommon.mk:904: recipe for target 'up' failed
make: [up] Error 2 (ignored)

Updated by duerst (Martin Dürst) over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r49069.


lib/uri/common.rb: Initialize HTML5ASCIIINCOMPAT to empty Array
to avoid error during bootstrap when encodings are not yet defined. [Bug #10678]

Actions

Also available in: Atom PDF