Project

General

Profile

« Previous | Next » 

Revision a2c7d0ce

Added by Eregon (Benoit Daloze) almost 7 years ago

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e