[ruby-cvs:50177] nobu:r43035 (trunk): string.c: fix for UTF-16/32

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Sep 24 17:39:03 JST 2013


nobu	2013-09-24 17:39:01 +0900 (Tue, 24 Sep 2013)

  New Revision: 43035

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

  Log:
    string.c: fix for UTF-16/32
    
    * string.c (rb_str_inspect): get rid of out-of-bound access.
    * string.c (rb_str_inspect): when a UTF-16/32 string doesn't have a
      BOM, inspect as a dummy encoding string.

  Modified files:
    trunk/ChangeLog
    trunk/string.c


More information about the ruby-cvs mailing list