Project

General

Profile

Actions

Bug #14711

closed

URI::HTML5ASCIIINCOMPAT returns expression

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

Status:
Closed
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

Also available in: Atom PDF

Like0
Like0Like0