summaryrefslogtreecommitdiff
path: root/ext/psych/lib
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 03:12:03 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 03:12:03 +0000
commit15335f8aaa8282fd951935135aa04b3d938a267c (patch)
treedd5eabbc54d17c2454dddb00136bb684ee85cd33 /ext/psych/lib
parenta8f8b617c0c609557c80f85de59a4472cc5d45d5 (diff)
* ext/psych/emitter.c: using xmalloc and xfree for memory allocation
* ext/psych/lib/psych/nodes/stream.rb: encoding should be read / write * ext/psych/parser.c: supporting UTF-16 and UTF-16 + BOM * test/psych/test_parser.rb: testing UTF-16 and UTF-16 + BOM git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib')
-rw-r--r--ext/psych/lib/psych/nodes/stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/nodes/stream.rb b/ext/psych/lib/psych/nodes/stream.rb
index f4aab5a7dc..7cf5e033ec 100644
--- a/ext/psych/lib/psych/nodes/stream.rb
+++ b/ext/psych/lib/psych/nodes/stream.rb
@@ -21,7 +21,7 @@ module Psych
UTF16BE = Psych::Parser::UTF16BE
# The encoding used for this stream
- attr_reader :encoding
+ attr_accessor :encoding
###
# Create a new Psych::Nodes::Stream node with an +encoding+ that