[#81492] [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — normalperson@...

Issue #13618 has been reported by normalperson (Eric Wong).

12 messages 2017/06/01

[ruby-core:81679] [Ruby trunk Bug#13655] external encoding named "-" (doc issue or…?)

From: nobu@...
Date: 2017-06-14 05:23:08 UTC
List: ruby-core #81679
Issue #13655 has been updated by nobu (Nobuyoshi Nakada).


I think it a doc issue.

----------------------------------------
Bug #13655: external encoding named "-" (doc issue or…?)
https://bugs.ruby-lang.org/issues/13655#change-65370

* Author: shyouhei (Shyouhei Urabe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 2.5
* ruby -v: ruby 2.5.0dev (2017-06-09 trunk 59055) [x86_64-darwin15]
* Backport: 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED
----------------------------------------
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)
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next