[ruby-cvs:60346] nobu:r53188 (trunk): stringio.c: separate encoding from buffer

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 18 16:54:34 JST 2015


nobu	2015-12-18 16:54:33 +0900 (Fri, 18 Dec 2015)

  New Revision: 53188

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

  Log:
    stringio.c: separate encoding from buffer
    
    * ext/stringio/stringio.c (strio_set_encoding): add StringIO's own
      encoding and separate it from the buffer string to override the
      encoding of string when reading.  [ruby-core:72189] [Bug #11827]
      note that setting the encoding of its buffer string may cause
      unpredictable behavior.

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/ext/stringio/stringio.c
    trunk/test/stringio/test_stringio.rb


More information about the ruby-cvs mailing list