[ruby-cvs:60180] naruse:r53027 (trunk): * object.c (rb_inspect): dump inspected result with rb_str_escape()

naruse at ruby-lang.org naruse at ruby-lang.org
Fri Dec 11 03:57:10 JST 2015


naruse	2015-12-11 03:57:08 +0900 (Fri, 11 Dec 2015)

  New Revision: 53027

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

  Log:
    * object.c (rb_inspect): dump inspected result with rb_str_escape()
      instead of raising Encoding::CompatibilityError. [Feature #11801]
    
    * string.c (rb_str_escape): added to dump given string like
      rb_str_inspect without quotes and always dump in US-ASCII
      like rb_str_dump.

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/object.c
    trunk/string.c
    trunk/test/ruby/test_m17n.rb


More information about the ruby-cvs mailing list