Project

General

Profile

« Previous | Next » 

Revision 6412e6f6

Added by Eregon (Benoit Daloze) 9 months ago

[ruby/json] Use String#encode instead of rb_str_conv_enc()

  • rb_str_conv_enc() returns the source string unmodified
    if the conversion did not work. But we should be consistent with
    the generator here and only accept BINARY or convertible to UTF-8.

https://github.com/ruby/json/commit/1344ad6f66