ruby/ext/stringio
nobu 3e1c01ae46 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
2015-12-18 07:54:33 +00:00
..
README * ext: remove trailing spaces. 2011-05-22 09:26:02 +00:00
depend * lib/mkmf.rb: Add ruby/ruby.h, ruby/missing.h, ruby/intern.h, 2013-04-13 00:46:29 +00:00
extconf.rb handle ext/ as r53141 2015-12-16 05:31:54 +00:00
stringio.c stringio.c: separate encoding from buffer 2015-12-18 07:54:33 +00:00

README

-*- rd -*-
$Author$

=begin

= StringIO
Pseudo (({IO})) class from/to (({String})).

This library is based on MoonWolf version written in Ruby.  Thanks a lot.

= Differences to (({IO}))

* not implemented: (({fcntl})), (({reopen})).
* (({fileno})) returns nil.
* (({pos=})) returns new position, not 0.
* (({ungetc})) does nothing at start of the string.

=end