mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/json/lib/json/pure/parser.rb
(JSON::Pure::Parser#parse_string): force_encoding("UTF-8"). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ccf184d9e4
commit
87259f9a5f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 8 15:00:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/json/lib/json/pure/parser.rb
|
||||
(JSON::Pure::Parser#parse_string): force_encoding("UTF-8").
|
||||
|
||||
Wed Oct 8 11:56:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb: assert_nothing_thrown,
|
||||
|
|
|
@ -146,7 +146,7 @@ module JSON
|
|||
raise JSON::ParserError, "partial character in source" if stack
|
||||
res.pack("U*")
|
||||
end
|
||||
end
|
||||
end.force_encoding("UTF-8")
|
||||
else
|
||||
UNPARSED
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue