Actions
Bug #1658
closedEncoding.name_list Returns Dummy Encodings Contrary to Documentation
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
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 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
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
Like0
Like0Like0