Project

General

Profile

Actions

Bug #14711

closed

URI::HTML5ASCIIINCOMPAT returns expression

Added by aderyabin (Andrey Deryabin) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:86678]

Description

Since Ruby 2.3.0 URI::HTML5ASCIIINCOMPAT returns expression instead of an array.

I guess it's a backward compatibility issue.

➜  ~ RBENV_VERSION=2.2.5 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT"
[#<Encoding:UTF-7 (dummy)>, #<Encoding:UTF-16BE (autoload)>, #<Encoding:UTF-16LE (autoload)>, #<Encoding:UTF-32BE (autoload)>, #<Encoding:UTF-32LE (autoload)>]
➜  ~ RBENV_VERSION=2.3.0 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT"
"expression"
➜  ~ RBENV_VERSION=2.4.4 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT"
"expression"
➜  ~ RBENV_VERSION=2.5.0 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT"
"expression"
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Description updated (diff)
  • Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r63259.


common.rb: unused constant

  • lib/uri/common.rb (URI::HTML5ASCIIINCOMPAT): remove the constant
    which has been unused since r40460, and wrong since r49069 due
    to the operator precedence. [ruby-core:86678] [Bug #14711]
Actions

Also available in: Atom PDF

Like0
Like0Like0