Bug #1658: Encoding.name_list Returns Dummy Encodings Contrary to Documentation
http://redmine.ruby-lang.org/issues/show/1658

Author: Run Paint Run Run
Status: Open, Priority: Low
Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2009-06-19 trunk 23739) [i686-linux]

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)>


----------------------------------------
http://redmine.ruby-lang.org