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 #1

Updated by matz (Yukihiro Matsumoto) over 15 years ago

=begin
Hi,

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

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

We should fix the rdoc.

						matz.

=end

Actions #2

Updated by matz (Yukihiro Matsumoto) over 15 years ago

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

=begin
Applied in changeset r23745.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0