Project

General

Profile

« Previous | Next » 

Revision 3e1c01ae

Added by nobu (Nobuyoshi Nakada) almost 10 years ago

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.

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