aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-18 07:54:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-18 07:54:33 +0000
commit45c84f1406a8a847a2bf6984db964d3850f69b7e (patch)
tree6b976948575d7ca6042198ecb76889bf50173823 /NEWS
parentb5b492c75c487478b180d07080fafbffebf7dc52 (diff)
downloadruby-45c84f1406a8a847a2bf6984db964d3850f69b7e.tar.gz
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
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ffd4fc73cf..a45d2eba23 100644
--- a/NEWS
+++ b/NEWS
@@ -239,6 +239,11 @@ with all sufficient information, see the ChangeLog file.
String buffer argument like IO#read and IO#read_nonblock to reduce
GC overhead
+* StringIO
+ * In read-only mode, StringIO#set_encoding no longer sets the encoding
+ of its buffer string. Setting the encoding of the string directly
+ may cause unpredictable behavior. [Bug #11827]
+
* timeout
* Object#timeout is now warned as deprecated when called.