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

eregon at ruby-lang.org eregon at ruby-lang.org
Sat Aug 4 00:11:49 JST 2018


eregon	2018-08-04 00:11:49 +0900 (Sat, 04 Aug 2018)

  New Revision: 64178

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

  Log:
    encoding.c (rb_enc_get_index): return -1 for non-encoding capable objects
    
    * Clarify logic and add spec.
    * Now passes test-all with the JSON fix.

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


More information about the ruby-cvs mailing list