Project

General

Profile

Actions

Bug #13655

closed

external encoding named "-" (doc issue or…?)

Added by shyouhei (Shyouhei Urabe) over 7 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.5.0dev (2017-06-09 trunk 59055) [x86_64-darwin15]
[ruby-core:81665]

Description

IO.new's document explicitly states that it accepts "-" as external encoding:

https://github.com/ruby/ruby/blob/d0015e4ac6b812ea1681b1f5fa86fbab52a58960/io.c#L7790

which is not true.

% ruby -ve 'IO.new(0, external_encoding: "-")'
ruby 2.5.0dev (2017-06-09 trunk 59055) [x86_64-darwin15]
Traceback (most recent call last):
        2: from -e:1:in `<main>'
        1: from -e:1:in `new'
-e:1:in `initialize': unknown encoding name - - (ArgumentError)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0