Bug #1658

Encoding.name_list Returns Dummy Encodings Contrary to Documentation

Added by Run Paint Run Run about 6 years ago. Updated over 4 years ago.

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

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

History

#1 Updated by Yukihiro Matsumoto about 6 years ago

=begin
Hi,

In message "Re: [Bug #1658] Encoding.name_list Returns Dummy Encodings Contrary to Documentation"
on Fri, 19 Jun 2009 19:45:26 +0900, Run Paint Run Run redmine@ruby-lang.org writes:

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

We should fix the rdoc.

                        matz.

=end

#2 Updated by Yukihiro Matsumoto about 6 years ago

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

=begin
Applied in changeset r23745.
=end

Also available in: Atom PDF