[ruby-cvs:71265] eregon:r64173 (trunk): encoding.c (rb_enc_get_index): return -1 for non-encoding capable objects

eregon at ruby-lang.org eregon at ruby-lang.org
Fri Aug 3 22:52:26 JST 2018


eregon	2018-08-03 22:52:26 +0900 (Fri, 03 Aug 2018)

  New Revision: 64173

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64173

  Log:
    encoding.c (rb_enc_get_index): return -1 for non-encoding capable objects
    
    * Clarify logic and add spec.

  Modified files:
    trunk/encoding.c
    trunk/spec/ruby/optional/capi/encoding_spec.rb


More information about the ruby-cvs mailing list