ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: nagachika00@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:86202] [Ruby trunk Bug#13655] external encoding named "-" (doc issue or…?)
Date: Mon, 19 Mar 2018 16:27:48 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-71097.20180319162746.8023144793e0978e@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-13655.20170613160628@ruby-lang.org

Issue #13655 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r62846 merged revision(s) 61278,61281.

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

* Author: shyouhei (Shyouhei Urabe)
* Status: Closed
* Priority: Normal
* Assignee: stomar (Marcus Stollsteimer)
* 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: DONE
----------------------------------------
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/

  parent reply	other threads:[~2018-03-19 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-13655.20170613160628@ruby-lang.org>
2017-06-13 16:06 ` [ruby-core:81665] [Ruby trunk Bug#13655] external encoding named "-" (doc issue or…?) shyouhei
2017-06-14  5:23 ` [ruby-core:81679] " nobu
2017-07-15  2:24 ` [ruby-core:82072] [Ruby trunk Bug#13655][Assigned] " shyouhei
2018-03-19 16:27 ` nagachika00 [this message]
2018-03-28  4:45 ` [ruby-core:86342] [Ruby trunk Bug#13655] " usa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-71097.20180319162746.8023144793e0978e@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).