mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 09:41:52 +01:00
Merge pull request #2740 from constantined/constantined
UTF-8 support for JSON-RPC
This commit is contained in:
@@ -118,7 +118,7 @@ BOOST_AUTO_TEST_CASE(script_valid)
|
||||
BOOST_FOREACH(Value& tv, tests)
|
||||
{
|
||||
Array test = tv.get_array();
|
||||
string strTest = write_string(tv, false);
|
||||
string strTest = write_string(tv, raw_utf8);
|
||||
if (test.size() < 2) // Allow size > 2; extra stuff ignored (useful for comments)
|
||||
{
|
||||
BOOST_ERROR("Bad test: " << strTest);
|
||||
@@ -142,7 +142,7 @@ BOOST_AUTO_TEST_CASE(script_invalid)
|
||||
BOOST_FOREACH(Value& tv, tests)
|
||||
{
|
||||
Array test = tv.get_array();
|
||||
string strTest = write_string(tv, false);
|
||||
string strTest = write_string(tv, raw_utf8);
|
||||
if (test.size() < 2) // Allow size > 2; extra stuff ignored (useful for comments)
|
||||
{
|
||||
BOOST_ERROR("Bad test: " << strTest);
|
||||
|
||||
Reference in New Issue
Block a user