Project

General

Profile

Actions

Bug #1658

closed

Encoding.name_list Returns Dummy Encodings Contrary to Documentation

Added by runpaint (Run Paint Run Run) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-06-19 trunk 23739) [i686-linux]
Backport:
[ruby-core:23926]

Description

=begin
Encoding.name_list returns dummy encodings, but the rdoc claims it won't.

 Encoding.name_list.map {|e| Encoding.find(e)}.compact.select {|e| e.dummy?}
 #=> [#<Encoding:ISO-2022-JP (dummy)>, 
      #<Encoding:ISO-2022-JP (dummy)>, 
      #<Encoding:ISO-2022-JP-2 (dummy)>, 
      #<Encoding:ISO-2022-JP-2 (dummy)>, 
      #<Encoding:CP50221 (dummy)>, 
      #<Encoding:UTF-7 (dummy)>, 
      #<Encoding:UTF-7 (dummy)>

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0