[Ruby 1.9-Bug#4201][Open] open fails with Encoding object

Bug #4201: open fails with Encoding object
http://redmine.ruby-lang.org/issues/show/4201

起票者: Nobuyoshi N.
ステータス: Open, 優先度: High
担当者: Nobuyoshi N., カテゴリ: M17N
ruby -v: r30347

open(“foo”, encoding: Encoding::US_ASCII) が例外になります。
encoding:がexteranl_encoding:やinternal_encoding:なら動作します。

チケット #4201 が更新されました。 (by Nobuyoshi N.)

ステータス OpenからClosedに変更
進捗 % 0から100に変更

This issue was solved with changeset r30349.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

チケット #4201 が更新されました。 (by Yuki S.)

ステータス AssignedからClosedに変更

This issue was solved with changeset r30555.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merges r30349 from trunk into ruby_1_9_2.

  • io.c (rb_io_extract_encoding_option): accept Encoding object as
    encoding: optional argument. [ruby-dev:42884]